From: Michael Prokop Date: Fri, 22 Dec 2023 16:13:02 +0000 (+0100) Subject: coding style: use '[' instead of 'test' X-Git-Tag: v0.106~6 X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=commitdiff_plain;h=19dc059a0f67699116d83305ce8f0320ef0fe613 coding style: use '[' instead of 'test' --- diff --git a/grml-debootstrap b/grml-debootstrap index 879d105..d671de8 100755 --- 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