mirror of
https://github.com/Matir/skel.git
synced 2026-05-26 13:35:42 -07:00
Update how argument list is sliced.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user