From d0037fcf6b27dae0cbbd34fc22d9ed639be7646d Mon Sep 17 00:00:00 2001 From: jcmdln Date: Sat, 14 Oct 2023 22:01:38 -0400 Subject: [PATCH] Allow running in POSIX shells --- build_odin.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build_odin.sh b/build_odin.sh index 3900f5477..02baac382 100755 --- a/build_odin.sh +++ b/build_odin.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/usr/bin/env sh set -eu : ${CPPFLAGS=} @@ -15,7 +15,7 @@ OS_ARCH="$(uname -m)" OS_NAME="$(uname -s)" if [ -d ".git" ] && [ -n "$(command -v git)" ]; then - GIT_SHA=($(git show --pretty='%h' --no-patch --no-notes HEAD)) + GIT_SHA=$(git show --pretty='%h' --no-patch --no-notes HEAD) CPPFLAGS="$CPPFLAGS -DGIT_SHA=\"$GIT_SHA\"" fi