rexbacklight/scripts/git_branch_name.sh
2018-12-14 18:42:59 -08:00

8 lines
136 B
Bash
Executable File

#!/bin/sh
output="$(git rev-parse --abbrev-ref HEAD)"
if test -n "$output";then
echo "#define GIT_BRANCH_NAME \"$output\" //test"
fi