mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-22 17:17:03 +02:00
vsrccopy: fix detection of last argument
This commit is contained in:
parent
da8a19b5ab
commit
a6c4206699
1 changed files with 1 additions and 1 deletions
|
@ -173,7 +173,7 @@ vsrccopy() {
|
|||
if [ $# -lt 2 ]; then
|
||||
msg_error "vsrccopy <file>... <target>"
|
||||
fi
|
||||
_tgt="${@:-1}"
|
||||
_tgt="${@: -1}"
|
||||
mkdir -p "$_tgt"
|
||||
while [ $# -gt 1 ]; do
|
||||
cp -a "${XBPS_SRCDISTDIR}/${pkgname}-${version}/$1" "$_tgt"
|
||||
|
|
Loading…
Add table
Reference in a new issue