From 972320f2f4e3fbb7c495a2e6b88069a3893ba1ed Mon Sep 17 00:00:00 2001 From: Alexandre Aubin <4533074+alexAubin@users.noreply.github.com> Date: Thu, 20 Jun 2024 23:17:28 +0200 Subject: [PATCH] Update convert_to_helpers_2.1.py: fix sed -i syntax for MacOS where -i requires a suffix, even empty string... --- tools/helpers2.1/convert_to_helpers_2.1.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/helpers2.1/convert_to_helpers_2.1.py b/tools/helpers2.1/convert_to_helpers_2.1.py index 18bada3a..4595bafd 100644 --- a/tools/helpers2.1/convert_to_helpers_2.1.py +++ b/tools/helpers2.1/convert_to_helpers_2.1.py @@ -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__":