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:
Juan RP 2015-09-11 07:55:40 +02:00
parent ea9c012c04
commit bcdacb66a0
20 changed files with 28 additions and 23 deletions

View file

@ -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