Make mountpoint output silent
authorMichael Prokop <mika@grml.org>
Thu, 4 Jun 2015 13:26:08 +0000 (15:26 +0200)
committerMichael Prokop <mika@grml.org>
Thu, 4 Jun 2015 13:26:16 +0000 (15:26 +0200)
Related to issue #66 @ github / commit 9d9ec2d4cee334ce5b378fb880a2c58c57e4f6e7

grml-debootstrap

index 9a27e4b..4615555 100755 (executable)
@@ -1566,7 +1566,7 @@ remove_configs() {
     return 0
   fi
 
-  if ! mountpoint "${MNTPOINT}" ; then
+  if ! mountpoint "${MNTPOINT}" >/dev/null 2>&1 ; then
     ewarn "Target ${MNTPOINT} doesn't seem to be mounted, can't remove configuration files." ; eend 0
     return 0
   fi