Skip to content

Commit 31d3bc3

Browse files
authored
Merge pull request #186 from jaczhi/jaczhi/sed-build-fix
sed fix if user is on Mac
2 parents 030a0e1 + 3f62090 commit 31d3bc3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

build-meta.bash

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,8 @@ echo '{"revision":"'${revision}'","timestamp":'${timestamp}'}' > ./public/build-
55
echo -e 'export const REVISION = '"'"${revision}"'" \
66
'\n// eslint-disable-next-line @typescript-eslint/no-loss-of-precision, prettier/prettier' \
77
'\nexport const TIMESTAMP = '${timestamp} > ./src/build-meta.ts
8-
sed -i -r 's/([^ \t]+)[ \t]+$/\1/' ./src/build-meta.ts
8+
if [ "$(uname -s)" = "Darwin" ]; then
9+
sed -E -i '' -r 's/([^ \t]+)[ \t]+$/\1/' ./src/build-meta.ts
10+
else
11+
sed -i -r 's/([^ \t]+)[ \t]+$/\1/' ./src/build-meta.ts
12+
fi

0 commit comments

Comments
 (0)