preview build testing

This commit is contained in:
Jonathan Shook
2023-01-25 19:03:20 -06:00
parent 32486b3d64
commit 0864517944
+8 -9
View File
@@ -17,15 +17,14 @@
set -e set -e
export branch=$(git status --branch --porcelain | cut -d' ' -f2) #export branch=$(git status --branch --porcelain | cut -d' ' -f2)
#if [[ $branch =~ main ]]
if [[ $branch =~ main ]] #then
then # printf "On branch main, continuing\n" 1>&2
printf "On branch main, continuing\n" 1>&2 #else
else # printf "Not branch main, bailing out\n" 1>&2
printf "Not branch main, bailing out\n" 1>&2 # exit 2
exit 2 #fi
fi
export REVISION=$(mvn help:evaluate -Dexpression=revision -q -DforceStdout) export REVISION=$(mvn help:evaluate -Dexpression=revision -q -DforceStdout)