aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanielGavin <danielgavin5@hotmail.com>2025-01-08 13:44:13 +0100
committerGitHub <noreply@github.com>2025-01-08 13:44:13 +0100
commita9853fc6dd92ca4491692bf7c060d057e95ef4a5 (patch)
treebd513ee49aaaca291723933b6a8296582473baab
parent99656593659ce6e76d98f96562d5b6c0566dba7c (diff)
parent67bae4d4758a0107e6d2c960604d67ae578b131e (diff)
Merge pull request #572 from glektarssza/bugfix/sed-on-macos
Adjust `sed` call in `build.sh`
-rwxr-xr-xbuild.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index 093e124..cd760bb 100755
--- a/build.sh
+++ b/build.sh
@@ -48,6 +48,6 @@ fi
version="$(git describe --tags --abbrev=7)"
version="${version%-*}:${version##*-}"
-sed -i "s|VERSION :: .*|VERSION :: \"${version}\"|g" src/main.odin
+sed -i "" "s|VERSION :: .*|VERSION :: \"${version}\"|g" src/main.odin
odin build src/ -show-timings -collection:src=src -out:ols -microarch:native -no-bounds-check -o:speed $@