mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 23:28:48 +00:00
Allow running in POSIX shells
This commit is contained in:
+2
-2
@@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env sh
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
: ${CPPFLAGS=}
|
: ${CPPFLAGS=}
|
||||||
@@ -15,7 +15,7 @@ OS_ARCH="$(uname -m)"
|
|||||||
OS_NAME="$(uname -s)"
|
OS_NAME="$(uname -s)"
|
||||||
|
|
||||||
if [ -d ".git" ] && [ -n "$(command -v git)" ]; then
|
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\""
|
CPPFLAGS="$CPPFLAGS -DGIT_SHA=\"$GIT_SHA\""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user