Files
start-os/frontend/update-git-hash.sh
2022-02-10 14:26:22 -07:00

8 lines
149 B
Bash
Executable File

#!/bin/bash
cd "$(dirname "$0")"
TMP_FILE=$(mktemp)
jq ".gitHash = \"$(git rev-parse HEAD)\"" config.json > $TMP_FILE && mv $TMP_FILE config.json