exit_on_missing_deps now accepts the dep(s) as an argument
This commit is contained in:
parent
2a8b2edea8
commit
db571c70a7
1 changed files with 3 additions and 3 deletions
|
@ -18,7 +18,7 @@ unpack_mode=022
|
||||||
##
|
##
|
||||||
# Utils
|
# Utils
|
||||||
exit_on_missing_deps() {
|
exit_on_missing_deps() {
|
||||||
deps="git"
|
deps=$1
|
||||||
for dep in $deps; do
|
for dep in $deps; do
|
||||||
which -s $dep
|
which -s $dep
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
|
@ -113,12 +113,12 @@ case $1 in
|
||||||
break
|
break
|
||||||
;;
|
;;
|
||||||
"clone")
|
"clone")
|
||||||
exit_on_missing_deps
|
exit_on_missing_deps "git"
|
||||||
clone
|
clone
|
||||||
break
|
break
|
||||||
;;
|
;;
|
||||||
"pull")
|
"pull")
|
||||||
exit_on_missing_deps
|
exit_on_missing_deps "git"
|
||||||
pull
|
pull
|
||||||
break
|
break
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue