]> Zhao Yanbai Git Server - minix.git/commitdiff
arm_sdimage:hide non fatal errors.
authorKees Jongenburger <keesj@minix3.org>
Wed, 10 Apr 2013 14:58:46 +0000 (16:58 +0200)
committerKees Jongenburger <keesj@minix3.org>
Fri, 12 Apr 2013 18:52:58 +0000 (20:52 +0200)
Redirect the output of the command that are supposed to fail to
/dev/null.

releasetools/arm_sdimage.sh

index 86a5b9e2a3fbb8f00b3ed891eeb87ad258026a88..86eb9a529f69af495e3270f131bbb7da32f06bf0 100755 (executable)
@@ -55,12 +55,15 @@ rm -f ${DESTDIR}/SETS.*
 
 ${CROSS_TOOLS}/nbpwd_mkdb -V 0 -p -d ${DESTDIR} ${DESTDIR}/etc/master.passwd
 
-umount ${MP_MINIX}/home || true
-umount ${MP_MINIX}/usr || true
-umount ${MP_MINIX} || true
-umount ${MP_BOOT} || true
-
-losetup -d ${LOOP} || true
+#
+# The output from the command bellows are redirected to prevent confusion.
+# they are supposed to fail unless the previous build was aborted.
+#
+umount ${MP_MINIX}/home 2>/dev/null || true
+umount ${MP_MINIX}/usr 2>/dev/null || true
+umount ${MP_MINIX} 2>/dev/null || true
+umount ${MP_BOOT} 2>/dev/null || true
+losetup -d ${LOOP} 2>/dev/null || true
 
 echo "Mounting disk image."
 losetup ${LOOP} $IMG