projects
/
grml-live.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7b4da4e
)
grml-live: clean up MIRROR_DIRECTORY if provided.
author
Mihai Moldovan
<ionic@ionic.de>
Wed, 24 Mar 2021 11:44:14 +0000
(12:44 +0100)
committer
Mihai Moldovan
<ionic@ionic.de>
Wed, 24 Mar 2021 11:44:14 +0000
(12:44 +0100)
Be like a ninja.
grml-live
patch
|
blob
|
history
diff --git
a/grml-live
b/grml-live
index
8b0adfe
..
6107e28
100755
(executable)
--- a/
grml-live
+++ b/
grml-live
@@
-180,7
+180,10
@@
umount_all() {
fi
umount "${CHROOT_OUTPUT}/grml-live/sources/" 2>/dev/null || /bin/true
fi
umount "${CHROOT_OUTPUT}/grml-live/sources/" 2>/dev/null || /bin/true
- [ -n "$MIRROR_DIRECTORY" ] && umount "${CHROOT_OUTPUT}/${MIRROR_DIRECTORY}"
+ if [ -n "${MIRROR_DIRECTORY}" ]; then
+ umount "${CHROOT_OUTPUT}/${MIRROR_DIRECTORY}"
+ rmdir -p "${CHROOT_OUTPUT}/${MIRROR_DIRECTORY}"
+ fi
}
# }}}
}
# }}}