Files
runner-images/images/linux/scripts/installers/build-essential.sh
Shady Ibraheem f396818e23 Inital commit.
2019-11-15 15:38:01 -05:00

25 lines
862 B
Bash

#!/bin/bash
################################################################################
## File: build-essential.sh
## Desc: Installs build-essential package
################################################################################
# Source the helpers for use with the script
source $HELPER_SCRIPTS/document.sh
source $HELPER_SCRIPTS/apt.sh
PACKAGE=build-essential
# Test to see if the software in question is already installed, if not install it
echo "Checking to see if the installer script has already been run"
if ! IsInstalled $PACKAGE; then
echo "Installing $PACKAGE"
apt-get install -y --no-install-recommends $PACKAGE
else
echo "$PACKAGE is already installed"
fi
# Document what was added to the image
echo "Lastly, documenting what we added to the metadata file"
DocumentInstalledItem "$PACKAGE"