aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorG'lek Tarssza <glek@glektarssza.com>2025-01-07 13:40:55 -0700
committerGitHub <noreply@github.com>2025-01-07 13:40:55 -0700
commit67bae4d4758a0107e6d2c960604d67ae578b131e (patch)
tree252322889967d1646de22c2f9f500163bae989f2
parent3589fe03d7124c9058dc69bcc21aa85910367cfe (diff)
Adjust `sed` call in `build.sh`
On macOS the `-i` parameter value is mandatory (unlike in GNU).
-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 $@