projects
/
grml-debootstrap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
bfe0fed
)
coding style: use '[' instead of 'test'
author
Michael Prokop
<mika@grml.org>
Fri, 22 Dec 2023 16:13:02 +0000
(17:13 +0100)
committer
Michael Prokop
<mika@grml.org>
Fri, 22 Dec 2023 16:13:02 +0000
(17:13 +0100)
grml-debootstrap
patch
|
blob
|
history
diff --git
a/grml-debootstrap
b/grml-debootstrap
index
879d105
..
d671de8
100755
(executable)
--- a/
grml-debootstrap
+++ b/
grml-debootstrap
@@
-299,7
+299,7
@@
cleanup() {
# remove directory only if we used the default with process id inside the name
if echo "$MNTPOINT" | grep -q '/mnt/debootstrap\.' ; then
- if
test -d "$MNTPOINT"
; then
+ if
[ -d "$MNTPOINT" ]
; then
einfo "Removing directory ${MNTPOINT}"
rmdir "$MNTPOINT" || eend $?
fi