From d5e49e686c2283a84c5d6fe17df8c437be867339 Mon Sep 17 00:00:00 2001 From: Ivo Capanema Date: Wed, 9 Nov 2022 21:45:26 -0300 Subject: [PATCH] fix check build archive exists logic --- reinstall-magisk-on-lineageos | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reinstall-magisk-on-lineageos b/reinstall-magisk-on-lineageos index e6364b1..711b05d 100755 --- a/reinstall-magisk-on-lineageos +++ b/reinstall-magisk-on-lineageos @@ -57,8 +57,9 @@ check_exists_latest_lineageos_build() { hash1=$( awk '{print $1}' /tmp/lineageos.sha256 ) hash2=$( sha256sum /tmp/lineageos.zip | awk '{print $1}' ) [[ -n $hash1 && -n $hash2 && $hash1 == $hash2 ]] + return fi - return + false } download_latest_lineageos_build() {