Update file run_onchange_after_12-install-packages.tmpl

This commit is contained in:
Brian Zalewski 2023-01-04 05:39:50 +00:00
parent 35057af0cf
commit a495ad0ea2

View file

@ -17,6 +17,14 @@ if command -v install-program > /dev/null; then
sudo echo "Sudo access granted."
export DEBIAN_FRONTEND=noninteractive
export HOMEBREW_NO_ENV_HINTS=true
if ! command -v gcc-11; then
if command -v gcc; then
log info 'gcc-11 command missing. Symlinking to gcc'
sudo ln -s "$(which gcc)" /usr/local/bin/gcc-11
else
log warn 'gcc either needs to be added to the PATH or it is missing'
fi
fi
install-program {{ $softwareList }}
else
logg error '`zx` is not available'