From 795bab3fa761d34e37327f7144f7ee465004dc47 Mon Sep 17 00:00:00 2001 From: Andrew Thrasher Date: Fri, 21 Feb 2025 13:34:16 -0500 Subject: [PATCH] fix: backup extension on mac works now --- developer_scripts/update_container_tags.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/developer_scripts/update_container_tags.sh b/developer_scripts/update_container_tags.sh index dd4216f8..d2bf7d2a 100755 --- a/developer_scripts/update_container_tags.sh +++ b/developer_scripts/update_container_tags.sh @@ -16,9 +16,7 @@ fi # freeBSD sed (including the Mac version) requires a space and then an argument to -i if [ "$(uname)" == "Darwin" ] then - inplace_arg='-i ""' + find . -not -path '.git' -a -type f -name '*.wdl' | xargs sed -Er -i '' "s,$search_pattern,$replacement,g" else - inplace_arg='-i' + find . -not -path '.git' -a -type f -name '*.wdl' | xargs sed -Er -i'' "s,$search_pattern,$replacement,g" fi - -find . -not -path '.git' -a -type f -name '*.wdl' | xargs sed -Er $inplace_arg "s,$search_pattern,$replacement,g"