FIX deleting temporary gitea file
This commit is contained in:
parent
1838e272f4
commit
c2f0f9002b
@ -48,7 +48,7 @@ else
|
|||||||
|
|
||||||
# strip gitea
|
# 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}
|
echo ${sha256check}
|
||||||
check=$( echo ${sha256check} | awk '{ print $2 }' )
|
check=$( echo ${sha256check} | awk '{ print $2 }' )
|
||||||
if [ "${check}" == "OK" ]
|
if [ "${check}" == "OK" ]
|
||||||
@ -60,7 +60,7 @@ else
|
|||||||
echo "There was a failure in the SHA256 file check."
|
echo "There was a failure in the SHA256 file check."
|
||||||
fi
|
fi
|
||||||
# remove local files:
|
# remove local files:
|
||||||
rm ${temp_file} gitea.sha256
|
rm ${file_gitea} ${file_gitea}.sha256
|
||||||
cd ..
|
cd ..
|
||||||
rmdir ${temp_folder}
|
rmdir ${temp_folder}
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user