From c2f0f9002b6a23af1efc551e0cd11928519b48cd Mon Sep 17 00:00:00 2001 From: Thomas Kuschel Date: Wed, 24 Jul 2024 01:53:38 +0200 Subject: [PATCH] FIX deleting temporary gitea file --- gitea/download_update_gitea.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gitea/download_update_gitea.sh b/gitea/download_update_gitea.sh index 0611ece..9d57281 100755 --- a/gitea/download_update_gitea.sh +++ b/gitea/download_update_gitea.sh @@ -48,7 +48,7 @@ else # strip gitea - sha256check=$( echo "$(cat gitea.sha256 | awk '{ print $1 }') ${file_gitea}" | sha256sum --check ) + sha256check=$( echo "$(cat ${file_gitea}.sha256 | awk '{ print $1 }') ${file_gitea}" | sha256sum --check ) echo ${sha256check} check=$( echo ${sha256check} | awk '{ print $2 }' ) if [ "${check}" == "OK" ] @@ -60,7 +60,7 @@ else echo "There was a failure in the SHA256 file check." fi # remove local files: - rm ${temp_file} gitea.sha256 + rm ${file_gitea} ${file_gitea}.sha256 cd .. rmdir ${temp_folder} fi