projects
/
grml-debootstrap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0dc8d8
)
fix `cleanup` function
author
Patrick Schleizer
<adrelanos@whonix.org>
Wed, 25 Oct 2023 15:57:27 +0000
(11:57 -0400)
committer
Patrick Schleizer
<adrelanos@whonix.org>
Thu, 7 Dec 2023 18:50:23 +0000
(13:50 -0500)
only delete `$MNTPOINT` if such a folder actually exists
grml-debootstrap
patch
|
blob
|
history
diff --git
a/grml-debootstrap
b/grml-debootstrap
index
cff0116
..
2124614
100755
(executable)
--- a/
grml-debootstrap
+++ b/
grml-debootstrap
@@
-257,7
+257,9
@@
cleanup() {
# Remove temporary mountpoint again
if echo "$MNTPOINT" | grep -q '/mnt/debootstrap\.' ; then
- rmdir "$MNTPOINT" 2>/dev/null
+ if [ -d "$MNTPOINT" ] ; then
+ rmdir "$MNTPOINT" 2>/dev/null
+ fi
fi
# make sure $TARGET is not mounted when exiting grml-debootstrap