fixed bincheck for python/gofixed bincheck for python/go
This commit is contained in:
parent
d660d99f1b
commit
5da09f7661
2 changed files with 7 additions and 5 deletions
2
PRbL
2
PRbL
|
|
@ -1 +1 @@
|
||||||
Subproject commit d56848bc3f35398117067ae083a9fc6573cf6703
|
Subproject commit f61e81082922e314c573ca70a1ed08937a8373c0
|
||||||
|
|
@ -54,11 +54,13 @@ check-deps(){
|
||||||
bins_missing+=($pkg)
|
bins_missing+=($pkg)
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
if ! $(which python3) ; then
|
pybin=$(which python3)
|
||||||
|
if [ -z $pybin ] ; then
|
||||||
run sudo apt-get install -y python3 python3-pip
|
run sudo apt-get install -y python3 python3-pip
|
||||||
# TODO: make a universal package install function
|
# TODO: make a universal package install function
|
||||||
fi
|
fi
|
||||||
if ! $(which pip3) ; then
|
pipbin=$(which pip3)
|
||||||
|
if [ -z $pipbin ] ; then
|
||||||
run sudo apt-get install -y python3-pip
|
run sudo apt-get install -y python3-pip
|
||||||
fi
|
fi
|
||||||
for pkg in ${pip_packages[@]} ; do
|
for pkg in ${pip_packages[@]} ; do
|
||||||
|
|
@ -70,8 +72,8 @@ check-deps(){
|
||||||
|
|
||||||
# This installer requires golang to work
|
# This installer requires golang to work
|
||||||
# TODO: better handling of prbl_packages as dependencies
|
# TODO: better handling of prbl_packages as dependencies
|
||||||
|
gobin=$(which go)
|
||||||
if ! $(which go) ; then
|
if [ -z $gobin ] ; then
|
||||||
bins_missing+=("prbl: golang.install")
|
bins_missing+=("prbl: golang.install")
|
||||||
fi
|
fi
|
||||||
# Count the number of entries in bins_missing
|
# Count the number of entries in bins_missing
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue