xbps-src: (metadata.sh): if readlink -f returns nothing try without -f.
This commit is contained in:
parent
7bd6967a44
commit
670dc453e2
1 changed files with 5 additions and 2 deletions
|
@ -189,8 +189,11 @@ _EOF
|
|||
echo "<key>file</key>" >> $TMPFPLIST
|
||||
echo "<string>$j</string>" >> $TMPFPLIST
|
||||
echo "<key>target</key>" >> $TMPFPLIST
|
||||
echo "<string>$(readlink -f "$f"|sed -e "$fpattern")</string>" \
|
||||
>> $TMPFPLIST
|
||||
lnk=$(readlink -f "$f"|sed -e "s|${DESTDIR}||")
|
||||
if [ -z "$lnk" -o "$lnk" = "" ]; then
|
||||
lnk=$(readlink "$f"|sed -e "s|${DESTDIR}||")
|
||||
fi
|
||||
echo "<string>$lnk</string>" >> $TMPFPLIST
|
||||
echo "</dict>" >> $TMPFPLIST
|
||||
done
|
||||
echo "</array>" >> $TMPFPLIST
|
||||
|
|
Loading…
Reference in a new issue