Open edi9999 opened 2 months ago
The issue seems to happen in the following command (dasht-docsets-extract) :
{ find "$want" -print
tar -t -f "$tgz" -z | sed -e "s|^[^/]*|$want|" -e 's|/$||'
} | sort -r | uniq -c | sed -n 's/^ *1 //p' | while read -r arg; do
if test -d "$arg"
then rmdir "$arg"
else rm -v "$arg"
fi
done
The rm here is the one that fails.
Changing it to this worked for me :
# remove any stale files that were left behind by the previous extraction
{ find "$want" -print
tar -t -f "$tgz" -z | sed -e "s|^[^/]*|$want|" -e 's|/$||'
} | sort -r | uniq -c | sed -n 's/^ *1 //p' | while read -r arg; do
if test -d "$arg"
then rmdir "$arg"
elif test -f "$arg"
then
rm -v "$arg"
fi
done
It seems like some unicode character in the Javascript.docset causes an issue in the install script.
Reproduce with this script :
Gives following output :