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