๐ Task summary
Refactor tools.func
๐ Task details
If I use the fetch_and_deploy_gh_release function with the CLEAN_INSTALL=1 variable, the function deletes the contents of the installation directory with the following command:
rm -rf "${target:?}/"*
However, this command does not delete the .directories and .files, which can cause problems (I had an error when updating the authentik script, so I had to include a delete command).
I would recommend changing the line to the following:
rm -rf "${target:?}"
Based on a quick review, this "bug" affects all fetch_and_deploy functions.
๐ Task summary
Refactor tools.func
๐ Task details
If I use the
fetch_and_deploy_gh_releasefunction with theCLEAN_INSTALL=1variable, the function deletes the contents of the installation directory with the following command:rm -rf "${target:?}/"*However, this command does not delete the .directories and .files, which can cause problems (I had an error when updating the authentik script, so I had to include a delete command).
I would recommend changing the line to the following:
rm -rf "${target:?}"Based on a quick review, this "bug" affects all
fetch_and_deployfunctions.