Skip to content

Commit

Permalink
👷 See if I can make it work with a shell script
Browse files Browse the repository at this point in the history
  • Loading branch information
segersniels committed Mar 29, 2024
1 parent e14bdf4 commit 89580e4
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions apps/cli/scripts/version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/sh

ARCH=$(uname -m)
if [ "${ARCH}" = "arm64" ]; then
ARCH="aarch64"
fi

BIN_DIR=$(find zig-out -type d -name "${ARCH}*" | head -n 1)
BIN="${BIN_DIR}/genmoji"

if [ -f "${BIN}" ]; then
echo $(./$BIN --version | awk -F' ' '{print $3}' | tr -d '"')
else
exit 1
fi

0 comments on commit 89580e4

Please sign in to comment.