xbps-src: replace basename(1) with ${var##*/}.
Reduce number of fork+exec due to using a subshell to execute basename(1).
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
# $3 - cross-target [OPTIONAL]
|
||||
|
||||
if [ $# -lt 2 -o $# -gt 3 ]; then
|
||||
echo "$(basename $0): invalid number of arguments: pkgname repository [cross-target]"
|
||||
echo "${0##*/}: invalid number of arguments: pkgname repository [cross-target]"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
Reference in New Issue
Block a user