coding style: use '[' instead of 'test'
authorMichael Prokop <mika@grml.org>
Fri, 22 Dec 2023 16:13:02 +0000 (17:13 +0100)
committerMichael Prokop <mika@grml.org>
Fri, 22 Dec 2023 16:13:02 +0000 (17:13 +0100)
grml-debootstrap

index 879d105..d671de8 100755 (executable)
@@ -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