[Lunar-commits] <lunar> lrm should remove broken symlinks as well
Stefan Wold
ratler at lunar-linux.org
Sat Jun 30 16:13:34 CEST 2012
commit debacad0eb9e046b66b103915a24f04dacdb4aab
Author: Michael 'v4hn' Goerner <v4hn at lunar-linux.org>
Date: Sat Jun 30 14:58:11 2012 +0200
lrm should remove broken symlinks as well
---
prog/lrm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/prog/lrm b/prog/lrm
index 95847f0..6432061 100755
--- a/prog/lrm
+++ b/prog/lrm
@@ -168,7 +168,7 @@ lrm_module() {
# yields the files that may be removed
if [ "$REAP" == "on" ] ; then
cat $INST_LOG | grep -v -f $PROTECTED | while read TARGET ; do
- if [ -e "$TARGET" ] ; then
+ if [ -e "$TARGET" ] || [ -L "$TARGET" ]; then
if [ -d "$TARGET" ] ; then
echo "$TARGET" >> $TMP_DIRS
else
More information about the Lunar-commits
mailing list