From 71cfff859151800b3467ed2eb398878b95b7cbf4 Mon Sep 17 00:00:00 2001 From: tastytea Date: Tue, 29 Sep 2015 16:35:59 +0200 Subject: [PATCH] little fix, Version bump --- hashboot.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hashboot.sh b/hashboot.sh index fd258b1..7996ea1 100755 --- a/hashboot.sh +++ b/hashboot.sh @@ -4,7 +4,7 @@ #3 = checksum mbr/boot mismatch, 4 = not root, 5 = no hasher found, 6 = wrong usage, #7 = write error, 8 = dd error -VERSION="0.7" +VERSION="0.7.1" PATH="/bin:/usr/bin:/sbin:/usr/sbin" DIGEST_FILE="/var/lib/hashboot.digest" @@ -18,7 +18,7 @@ BOOT_MOUNTED=0 #Umount /boot if we mounted it, exit with given exit code function die { - if [ ! -z ${BOOT_MOUNTED} ] + if [ ${BOOT_MOUNTED} -gt 0 ] then umount /boot fi