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

Fix again for MacOS which definitely doesn't like 'append' in sed x_x

This commit is contained in:
Alexandre Aubin 2024-06-20 23:34:41 +02:00
parent 972320f2f4
commit fea9c3d044

View file

@ -317,7 +317,9 @@ def cleanup():
os.system("git rm --quiet -f scripts/config")
# Add helpers_version = '2.1' after yunohost requirement in manifest
os.system('sed -i='' \'/^yunohost =/a helpers_version = "2.1"\' manifest.toml')
raw_manifest = open("manifest.toml", "r").read()
raw_manifest = re.sub('(yunohost = .*)', '\\1\nhelpers_version = "2.1"', raw_manifest)
open("manifest.toml", "w").write(raw_manifest)
if __name__ == "__main__":