mirror of
https://github.com/Matir/skel.git
synced 2026-05-25 21:19:09 -07:00
Make prune-broken-symlinks more portable
This commit is contained in:
@@ -22,10 +22,10 @@ prune-broken-symlinks() {
|
||||
echo ${FILES}
|
||||
echo -n 'Delete these links? [y/n] '
|
||||
if read -q ; then
|
||||
${FINDCMD} -delete
|
||||
${FINDCMD} -print0 | xargs -r -0 rm
|
||||
fi
|
||||
echo
|
||||
else
|
||||
${FINDCMD} -print -delete
|
||||
${FINDCMD} -print0 | xargs -r -0 rm
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user