diff --git a/cfbs/commands.py b/cfbs/commands.py index 237f9f3e..81429111 100644 --- a/cfbs/commands.py +++ b/cfbs/commands.py @@ -530,7 +530,6 @@ def _get_modules_by_url(name) -> list: % (module_name, input_path), default="no", ): - rm(input_path) files.append(input_path) msg += "\n - Removed input data for module '%s'" % module_name log.debug("Deleted module data '%s'" % input_path) @@ -566,6 +565,8 @@ def _get_modules_by_url(name) -> list: msg = msg[4:] # Remove the '\n - ' part of the message config.save() + for input_path in files: + rm(input_path) return CFBSCommandGitResult(0, changes_made, msg, files)