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