Update how argument list is sliced.

This commit is contained in:
David Tomaschik
2018-01-06 13:44:53 -08:00
parent a24b6ef51e
commit 0c38ad65f7

View File

@@ -57,7 +57,7 @@ function install_git {
fi fi
local REPO="${*: -2:1}" local REPO="${*: -2:1}"
local DESTDIR="${*: -1:1}" local DESTDIR="${*: -1:1}"
set ${*:1:-2} set ${@:1:$(($#-2))}
if [[ -d ${DESTDIR}/.git ]] ; then if [[ -d ${DESTDIR}/.git ]] ; then
( cd ${DESTDIR} ; git pull -q ) ( cd ${DESTDIR} ; git pull -q )
else else