From eb4896403a0b0e2c6269688315fc0f75d9f56a2c Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Thu, 4 Aug 2016 19:11:45 +0300 Subject: [PATCH] Check for the first commit --- release.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/release.sh b/release.sh index 0f5a67d..90e88b9 100755 --- a/release.sh +++ b/release.sh @@ -41,10 +41,10 @@ ADJUSTMENTS_MSG="${QUESTION_FLAG} ${CYAN}Now you can make adjustments to ${WHITE PUSHING_MSG="${NOTICE_FLAG} Pushing new version to the ${WHITE}origin${CYAN}..." -#if [ ! $LATEST_HASH ]; then -# echo -e "${ERROR_FLAG} No commits in the repo. Cannot continue." -# exit 1 -#fi +if [ ! "$LATEST_HASH" ]; then + echo -e "${ERROR_FLAG} No commits in the repo. Cannot continue." + exit 1 +fi # Do we have a file with our version? if [ ! -f $FILE_VERSION ]; then