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 "<key>file</key>" >> $TMPFPLIST
|
||||||
echo "<string>$j</string>" >> $TMPFPLIST
|
echo "<string>$j</string>" >> $TMPFPLIST
|
||||||
echo "<key>target</key>" >> $TMPFPLIST
|
echo "<key>target</key>" >> $TMPFPLIST
|
||||||
echo "<string>$(readlink -f "$f"|sed -e "$fpattern")</string>" \
|
lnk=$(readlink -f "$f"|sed -e "s|${DESTDIR}||")
|
||||||
>> $TMPFPLIST
|
if [ -z "$lnk" -o "$lnk" = "" ]; then
|
||||||
|
lnk=$(readlink "$f"|sed -e "s|${DESTDIR}||")
|
||||||
|
fi
|
||||||
|
echo "<string>$lnk</string>" >> $TMPFPLIST
|
||||||
echo "</dict>" >> $TMPFPLIST
|
echo "</dict>" >> $TMPFPLIST
|
||||||
done
|
done
|
||||||
echo "</array>" >> $TMPFPLIST
|
echo "</array>" >> $TMPFPLIST
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue