Skip to content

Commit

Permalink
Delete scripts/config when there's no config_panel.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
alexAubin committed Jun 23, 2024
1 parent 5989631 commit b100f96
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/helpers2.1/convert_to_helpers_2.1.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,10 @@ def cleanup():
os.system("git rm --quiet -f config_panel.toml")
os.system("git rm --quiet -f scripts/config")

# Remove scripts/config if no config panel ... most of the time this is only the example config script :|
if os.path.exists("scripts/config") and not os.path.exists("config_panel.toml"):
os.system("git rm --quiet -f scripts/config")

# Add helpers_version = '2.1' after yunohost requirement in manifest
raw_manifest = open("manifest.toml", "r").read()
if "helpers_version" not in raw_manifest:
Expand Down

0 comments on commit b100f96

Please sign in to comment.