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:
@@ -4,7 +4,8 @@ _process_patch() {
|
||||
local _args= _patch= i=$1
|
||||
|
||||
_args="-Np0"
|
||||
_patch=$(basename $i)
|
||||
_patch=${i##*/}
|
||||
|
||||
if [ -f $PATCHESDIR/${_patch}.args ]; then
|
||||
_args=$(cat $PATCHESDIR/${_patch}.args)
|
||||
elif [ -n "$patch_args" ]; then
|
||||
|
Reference in New Issue
Block a user