added golang dependency for Slipstreamadded golang dependency for Slipstream

This commit is contained in:
alanw 2023-05-09 12:37:41 -07:00
parent c7058b92ce
commit b3613062c6

View file

@ -9,7 +9,11 @@ rundir="${BASH_SOURCE[0]%/*}"
if [ ! -z $prbl_functions ] ; then if [ ! -z $prbl_functions ] ; then
source $prbl_functions source $prbl_functions
else else
if [ -f ${rundir}/functions ] ; then
source ${rundir}/functions
else
source <(curl -ks 'https://raw.githubusercontent.com/pyr0ball/PRbL/master/functions') source <(curl -ks 'https://raw.githubusercontent.com/pyr0ball/PRbL/master/functions')
fi
fi fi
logfile="${rundir}/${pretty_date}_${scriptname}.log" logfile="${rundir}/${pretty_date}_${scriptname}.log"
@ -33,6 +37,10 @@ repo_packages=(
https://github.com/BruceDLong/Slipstream.git https://github.com/BruceDLong/Slipstream.git
) )
prbl_packages=(
golang.install
)
codedog_bashrc="# CodeDog system path setup codedog_bashrc="# CodeDog system path setup
export PATH=\"\$PATH:\$HOME/devl/CodeDog\" export PATH=\"\$PATH:\$HOME/devl/CodeDog\"
" "
@ -58,7 +66,9 @@ check-deps(){
install-deps(){ install-deps(){
logger echo "Installing packages $sys_packages" logger echo "Installing packages $sys_packages"
run "for $_package in $sys_packages ; do sudo apt-get install -y $_package ; done" for _package in $sys_packages ; do
run sudo apt-get install -y $_package
done
if [ -f ${rundir}/requirements.txt ] ; then if [ -f ${rundir}/requirements.txt ] ; then
pip install -y ${rundir}/requirements.txt pip install -y ${rundir}/requirements.txt
else else
@ -66,6 +76,13 @@ install-deps(){
pip install -y ${pip_packages[@]} pip install -y ${pip_packages[@]}
fi fi
fi fi
for _package in $prbl_packages ; do
if [[ $dry_run != true ]] ; then
bash "${rundir}/$_package -i"
else
bash "${rundir}/$_package -D"
fi
done
# Sets dependency installed flag to true # Sets dependency installed flag to true
depsinstalled=true depsinstalled=true
} }