ACEC/hCaD_V2/scripts/get-git-id.sh
2022-10-21 19:34:18 +08:00

4 lines
124 B
Bash
Executable File

#!/bin/sh
# print current SHA1 git id which uniquely identifies the source code
git show 2>/dev/null |awk '{print $2;exit}'