xbps-src: (metadata.sh): if readlink -f returns nothing try without -f.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user