diff --git a/setversion.sh b/setversion.sh index b9de6b2..0226137 100644 --- a/setversion.sh +++ b/setversion.sh @@ -2,5 +2,8 @@ if [ -n ${TRAVIS_TAG} ] then + echo "This is a tagged commit! (Tag: ${TRAVIS_TAG}) Injecting version into main class..." sed -i.bak "s/\"SNAPSHOT\"/\"${TRAVIS_TAG/#v/}\"/" ./src/main/java/net/gravityfox/foxguard/FoxGuardMain.java +else + echo "This is not a tagged commit! Skipping injection..." fi \ No newline at end of file