Find and remove old files only from current dir
Avoid to find files in subdirectory
This commit is contained in:
parent
3580fa5f13
commit
3fa03cadd2
|
@ -238,7 +238,7 @@ The current version (${RED}${gitea_current_version}${COLOR_DEBUG}) is up-to-date
|
|||
debug_message "Test version − \
|
||||
Ensure to remove temp file and any previous and unused releases."
|
||||
rm --force -- "${gitea_new_version_file}"
|
||||
find "${gitea_bin_dir}" -type f -iname "gitea.to.upgrade*" -delete
|
||||
find "${gitea_bin_dir}" -maxdepth 1 -type f -iname "gitea.to.upgrade*" -delete
|
||||
fi
|
||||
# }}}
|
||||
|
||||
|
|
Loading…
Reference in New Issue