Skip to content

fetch_and_deploy_* CLEAN_INSTALL=1 don't delete .filesย #15856

Description

@thieneret

๐Ÿ“Œ 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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions