From 716ed4adbeacb53c7fe253336f83e1d27842c249 Mon Sep 17 00:00:00 2001 From: Ivo Capanema Date: Wed, 9 Nov 2022 23:15:50 -0300 Subject: [PATCH] remove debug print message; added curl silent --- reinstall-magisk-on-lineageos | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/reinstall-magisk-on-lineageos b/reinstall-magisk-on-lineageos index ef42cee..48e4e21 100755 --- a/reinstall-magisk-on-lineageos +++ b/reinstall-magisk-on-lineageos @@ -52,8 +52,7 @@ get_build_url() { check_exists_latest_lineageos_build() { if [[ -f "/tmp/lineageos.zip" ]]; then # The --location lets curl follow the redirection. - print_message "$(get_build_url)?sha256" - curl --location "$(get_build_url)?sha256" --output /tmp/lineageos.sha256 + curl --silent --location "$(get_build_url)?sha256" --output /tmp/lineageos.sha256 hash1=$( awk '{print $1}' /tmp/lineageos.sha256 ) hash2=$( sha256sum /tmp/lineageos.zip | awk '{print $1}' ) [[ -n $hash1 && -n $hash2 && $hash1 == $hash2 ]]