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 ${FILES}
|
||||||
echo -n 'Delete these links? [y/n] '
|
echo -n 'Delete these links? [y/n] '
|
||||||
if read -q ; then
|
if read -q ; then
|
||||||
${FINDCMD} -delete
|
${FINDCMD} -print0 | xargs -r -0 rm
|
||||||
fi
|
fi
|
||||||
echo
|
echo
|
||||||
else
|
else
|
||||||
${FINDCMD} -print -delete
|
${FINDCMD} -print0 | xargs -r -0 rm
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user