1
0
Fork 0
mirror of https://github.com/YunoHost/apps.git synced 2024-09-03 20:06:07 +02:00

Delete scripts/config when there's no config_panel.toml

This commit is contained in:
Alexandre Aubin 2024-06-23 16:34:35 +02:00
parent 59896315dd
commit b100f96707

View file

@ -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: