fixed bincheck for python/gofixed bincheck for python/go

This commit is contained in:
alanw 2023-05-09 15:42:08 -07:00
parent d660d99f1b
commit 5da09f7661
2 changed files with 7 additions and 5 deletions

2
PRbL

@ -1 +1 @@
Subproject commit d56848bc3f35398117067ae083a9fc6573cf6703
Subproject commit f61e81082922e314c573ca70a1ed08937a8373c0

View file

@ -54,11 +54,13 @@ check-deps(){
bins_missing+=($pkg)
fi
done
if ! $(which python3) ; then
pybin=$(which python3)
if [ -z $pybin ] ; then
run sudo apt-get install -y python3 python3-pip
# TODO: make a universal package install function
fi
if ! $(which pip3) ; then
pipbin=$(which pip3)
if [ -z $pipbin ] ; then
run sudo apt-get install -y python3-pip
fi
for pkg in ${pip_packages[@]} ; do
@ -70,8 +72,8 @@ check-deps(){
# This installer requires golang to work
# TODO: better handling of prbl_packages as dependencies
if ! $(which go) ; then
gobin=$(which go)
if [ -z $gobin ] ; then
bins_missing+=("prbl: golang.install")
fi
# Count the number of entries in bins_missing