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