the first `rmdir "$MNTPOINT"` needs `|| true`
[grml-debootstrap.git] / grml-debootstrap
index 29ae03f..bac28b0 100755 (executable)
@@ -258,7 +258,7 @@ cleanup() {
   # Remove temporary mountpoint again
   if echo "$MNTPOINT" | grep -q '/mnt/debootstrap\.' ; then
     if [ -d "$MNTPOINT" ] ; then
-      rmdir "$MNTPOINT"
+      rmdir "$MNTPOINT" || true
     fi
   fi