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

Update convert_to_helpers_2.1.py: fix sed -i syntax for MacOS where -i requires a suffix, even empty string...

This commit is contained in:
Alexandre Aubin 2024-06-20 23:17:28 +02:00 committed by GitHub
parent 8284f7927b
commit 972320f2f4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -288,7 +288,7 @@ def cleanup():
open(script, "w").write(content)
for pattern, replace in conf_replaces:
os.system(f"sed 's@{pattern}@{replace}@g' -i $(find conf/ -type f)")
os.system(f"sed -i='' 's@{pattern}@{replace}@g' $(find conf/ -type f)")
git_cmds = [
"git rm --quiet sources/extra_files/*/.gitignore 2>/dev/null",
@ -317,7 +317,7 @@ 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')
os.system('sed -i='' \'/^yunohost =/a helpers_version = "2.1"\' manifest.toml')
if __name__ == "__main__":