FIX deleting temporary gitea file
This commit is contained in:
parent
1838e272f4
commit
c2f0f9002b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user