FIX deleting temporary gitea file

This commit is contained in:
Thomas Kuschel 2024-07-24 01:53:38 +02:00
parent 1838e272f4
commit c2f0f9002b

View File

@ -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