mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 13:17:54 +00:00
Inital commit.
This commit is contained in:
24
images/linux/scripts/installers/build-essential.sh
Normal file
24
images/linux/scripts/installers/build-essential.sh
Normal file
@@ -0,0 +1,24 @@
|
||||
#!/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"
|
||||
Reference in New Issue
Block a user