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
|
||||
exit_on_missing_deps() {
|
||||
deps="git"
|
||||
deps=$1
|
||||
for dep in $deps; do
|
||||
which -s $dep
|
||||
if [ $? -ne 0 ]; then
|
||||
|
@ -113,12 +113,12 @@ case $1 in
|
|||
break
|
||||
;;
|
||||
"clone")
|
||||
exit_on_missing_deps
|
||||
exit_on_missing_deps "git"
|
||||
clone
|
||||
break
|
||||
;;
|
||||
"pull")
|
||||
exit_on_missing_deps
|
||||
exit_on_missing_deps "git"
|
||||
pull
|
||||
break
|
||||
;;
|
||||
|
|
Loading…
Reference in a new issue