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:
parent
972320f2f4
commit
fea9c3d044
1 changed files with 3 additions and 1 deletions
|
@ -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__":
|
||||
|
|
Loading…
Add table
Reference in a new issue