openofdm/get_git_rev.sh
2022-03-15 15:57:57 +01:00

12 lines
150 B
Bash
Executable File

#!/bin/bash
# xianjun.jiao@imec.be
if git log -1 > /dev/null 2>&1; then
GIT_REV=$(git log -1 --pretty=%h)
else
GIT_REV=ffffffff
fi
echo $GIT_REV