diff options
author | Iru Cai <mytbk920423@gmail.com> | 2018-12-06 15:34:01 +0800 |
---|---|---|
committer | Iru Cai <mytbk920423@gmail.com> | 2018-12-06 15:34:01 +0800 |
commit | 524e6162b6a8cbd0d413b7f7d35dd32e6d00c36c (patch) | |
tree | 9f4f3554ef93c1a10df8443527f08486c95ee8ff | |
parent | b79354aa2053f4e3dea3958391a7fba1508ec769 (diff) | |
download | liveusb-builder-524e6162b6a8cbd0d413b7f7d35dd32e6d00c36c.tar.xz |
return 1 when verify fails
-rw-r--r-- | functions.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/functions.sh b/functions.sh index 7cd6235..488141f 100644 --- a/functions.sh +++ b/functions.sh @@ -13,7 +13,7 @@ checksum_verify() { _hashtool=sha1sum _hashsum=$SHA1 elif [ -n "$VERIFY" ]; then - "$VERIFY" && return 0 + "$VERIFY" && return 0 || return 1 else fatalerror "Cannot find the SHA256, SHA1, or MD5 checksum of $ISOFILE" fi |