Skip to content

Commit

Permalink
bee-remove: Skip non-existent directories
Browse files Browse the repository at this point in the history
  • Loading branch information
mariux committed Aug 27, 2012
1 parent c29f3ea commit f2795a0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bee-remove.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ function subdirs() {
for path in "${@}" ; do
last=""
while [ "${path:0:1}" = '/' -a "${path}" != "" ] ; do
if [ ! -d "${path}" ] ; then
continue 2
fi

this=$(stat "${path}" --printf "%F%m")
if [ -n "${last}" -a "${last}" != "${this}" ] ; then
continue 2
Expand Down

0 comments on commit f2795a0

Please sign in to comment.