diff --git a/src/bee-remove.sh.in b/src/bee-remove.sh.in index d0396a3..1ee316f 100644 --- a/src/bee-remove.sh.in +++ b/src/bee-remove.sh.in @@ -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