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:
parent
ea9c012c04
commit
bcdacb66a0
20 changed files with 28 additions and 23 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue