We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf06155 commit dd6def8Copy full SHA for dd6def8
stamp.sh
@@ -4,7 +4,7 @@ set -e # Exit on errors
4
# set -x # Shell debugging
5
6
# First, check that we're on the main branch.
7
-BRANCH=$(git rev-parse --abbrev-rev HEAD)
+BRANCH=$(git branch --show-current)
8
if [ "$BRANCH" != "main" ] ; then
9
echo "Not on main, exiting!"
10
exit 1
0 commit comments