diff --git a/install.sh b/install.sh index 5ba6fed..6425704 100755 --- a/install.sh +++ b/install.sh @@ -57,7 +57,7 @@ function install_git { fi local REPO="${*: -2:1}" local DESTDIR="${*: -1:1}" - set ${*:1:-2} + set ${@:1:$(($#-2))} if [[ -d ${DESTDIR}/.git ]] ; then ( cd ${DESTDIR} ; git pull -q ) else