rusefi/firmware/bin/find_branch_name_or_snapsho...

10 lines
156 B
Bash
Executable File

#!/usr/bin/env bash
BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD)
if [ "$BRANCH_NAME" = "master" ]; then
echo "snapshot"
else
echo "$BRANCH_NAME"
fi