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
|
@ -32,7 +32,7 @@ hook() {
|
|||
if [ -h ${PKGDESTDIR}/"$j" ]; then
|
||||
dirat=$(dirname "$j")
|
||||
lnkat=$(readlink ${PKGDESTDIR}/"$j")
|
||||
newlnk=$(basename "$j")
|
||||
newlnk="${j##*/}"
|
||||
rm -f ${PKGDESTDIR}/"$j"
|
||||
cd ${PKGDESTDIR}/"$dirat"
|
||||
ln -s "${lnkat}".gz "${newlnk}".gz
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue