Skip to content

Commit b9d5f1a

Browse files
authored
Fix regex on macOS (#361)
1 parent 2bc1df1 commit b9d5f1a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

DATA/production/qc-workflow.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ if [[ -z $QC_JSON_FROM_OUTSIDE ]]; then
114114
MERGED_JSON_FILENAME=`realpath $MERGED_JSON_FILENAME`
115115

116116
if [[ "0$QC_REDIRECT_MERGER_TO_LOCALHOST" == "01" ]]; then
117-
sed -i -E 's/( *)"remoteMachine" *: *".*"(,|) *$/\1"remoteMachine": "127.0.0.1"\2/' $MERGED_JSON_FILENAME
117+
sed -i.bak -E 's/( *)"remoteMachine" *: *".*"(,?) *$/\1"remoteMachine": "127.0.0.1"\2/' $MERGED_JSON_FILENAME
118+
unlink $MERGED_JSON_FILENAME.bak
118119
fi
119120
QC_JSON_FROM_OUTSIDE="$MERGED_JSON_FILENAME"
120121
fi

0 commit comments

Comments
 (0)