From 0c38ad65f7f94cfb601e521f9d48e4ad9933fb6f Mon Sep 17 00:00:00 2001 From: David Tomaschik Date: Sat, 6 Jan 2018 13:44:53 -0800 Subject: [PATCH] Update how argument list is sliced. --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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