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:
parent
59896315dd
commit
b100f96707
1 changed files with 4 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue