FIX creation of temp folder

This commit is contained in:
Thomas Kuschel 2024-07-24 01:49:34 +02:00
parent 9bf5b636b9
commit 1838e272f4

View File

@ -10,7 +10,7 @@ file_prefix="gitea"
file_suffix="linux-amd64" file_suffix="linux-amd64"
install_dir="/usr/local/bin" install_dir="/usr/local/bin"
file_gitea="gitea" file_gitea="gitea"
temp_folder="temp08154711" temp_folder="temp.gitea.08154711"
temp_file=${temp_folder}/${file_gitea} temp_file=${temp_folder}/${file_gitea}
# get the latest version with the website_latest uri to github: # get the latest version with the website_latest uri to github:
@ -41,6 +41,7 @@ else
if [[ $REPLY =~ ^[YyJj]$ ]] if [[ $REPLY =~ ^[YyJj]$ ]]
then then
uri=${website_uri}/${version}/${file_prefix}-${version}-${file_suffix} uri=${website_uri}/${version}/${file_prefix}-${version}-${file_suffix}
mkdir -p ${temp_folder}
cd ${temp_folder} cd ${temp_folder}
wget -O ${file_gitea} --show-progress ${uri} wget -O ${file_gitea} --show-progress ${uri}
wget -O ${file_gitea}.sha256 ${uri}.sha256 wget -O ${file_gitea}.sha256 ${uri}.sha256