Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #20 from v4hn/lrm-directory-symlinks

lrm: test -d returns true for symlinked folders, so check for them
  • Loading branch information...
commit 5d862216f842adfc5549c58a52cc9ad093a7276b 2 parents 4e63c3c + bb0b364
@Ratler authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  prog/lrm
View
2  prog/lrm
@@ -101,7 +101,7 @@ remove_something() {
return 1
fi
- if [ -d "$1" ] ; then
+ if [ -d "$1" ] && ! [ -L "$1" ]; then
if rmdir "$1" 2> /dev/null ; then
debug_msg "ok : rmdir \"$1\""
else
Please sign in to comment.
Something went wrong with that request. Please try again.