vsrccopy: fix detection of last argument
This commit is contained in:
@@ -173,7 +173,7 @@ vsrccopy() {
|
|||||||
if [ $# -lt 2 ]; then
|
if [ $# -lt 2 ]; then
|
||||||
msg_error "vsrccopy <file>... <target>"
|
msg_error "vsrccopy <file>... <target>"
|
||||||
fi
|
fi
|
||||||
_tgt="${@:-1}"
|
_tgt="${@: -1}"
|
||||||
mkdir -p "$_tgt"
|
mkdir -p "$_tgt"
|
||||||
while [ $# -gt 1 ]; do
|
while [ $# -gt 1 ]; do
|
||||||
cp -a "${XBPS_SRCDISTDIR}/${pkgname}-${version}/$1" "$_tgt"
|
cp -a "${XBPS_SRCDISTDIR}/${pkgname}-${version}/$1" "$_tgt"
|
||||||
|
|||||||
Reference in New Issue
Block a user