From: Chris Hanson Date: Fri, 27 Jan 2012 05:45:56 +0000 (-0800) Subject: Don't delete symlinks with maybe_rm. X-Git-Tag: release-9.2.0~333 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=c09b4d79b518430d2d73cfce16baae3e7e11eb6b;p=mit-scheme.git Don't delete symlinks with maybe_rm. --- diff --git a/src/etc/functions.sh b/src/etc/functions.sh index 695439f40..96b65ee55 100644 --- a/src/etc/functions.sh +++ b/src/etc/functions.sh @@ -104,7 +104,7 @@ maybe_rm () DIRS= for FN in "${@}"; do if [ -L "${FN}" ]; then - FILES="${FILES} ${FN}" + : elif [ -f "${FN}" ]; then FILES="${FILES} ${FN}" elif [ -d "${FN}" ]; then