rusefi/firmware/bin/find_branch_name_or_snapsho...

10 lines
156 B
Bash
Raw Normal View History

2024-08-12 14:07:02 -07:00
#!/usr/bin/env bash
BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD)
if [ "$BRANCH_NAME" = "master" ]; then
echo "snapshot"
else
echo "$BRANCH_NAME"
fi