From c1ca441785e9d8e7745e03f898beff72a23746bf Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Wed, 3 Apr 2024 17:16:34 +0200 Subject: [PATCH] ci: update-stream-relay-source.sh Updated `sed` to be portable between OSX & Linux --- bin/update-stream-relay-source.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/update-stream-relay-source.sh b/bin/update-stream-relay-source.sh index 2796bffa61..9a85fbf505 100755 --- a/bin/update-stream-relay-source.sh +++ b/bin/update-stream-relay-source.sh @@ -8,7 +8,7 @@ cp -rf node_modules/@socketsupply/stream-relay/src api/stream-relay || exit $? rm -rf node_modules/@socketsupply/{socket,socket-{darwin,linux,win32}*,stream-relay} || exit $? for file in $(find api/stream-relay -type f); do - sed -i '' -e "s/'socket:\(.*\)'/'..\/\1.js'/g" "$file" || exit $? + sed -i.bak -e "s/'socket:\(.*\)'/'..\/\1.js'/g" "$file" && rm "$file.bak" || exit $? done {