Permalink
Browse files

is -> if

refs #89
  • Loading branch information...
M4LuZ committed May 6, 2018
1 parent 4ddba9e commit d3ff5505c09d0a63c45d6ad4ceca77e01bb247ce
Showing with 3 additions and 3 deletions.
  1. +3 −3 bin/prepare-release.sh
View
@@ -83,14 +83,14 @@ if [ $# -eq 0 ]; then
log "INFO" "Running in snapshot mode with commit ${COMMIT_SHA}."
RELEASE_VERSION="snapshot-$COMMIT_SHA"
else
log "INFO" "Argument $1 given. Checking is tag exists ..."
log "INFO" "Argument $1 given. Checking if tag exists ..."
git show-ref --verify refs/tags/$1
if [ $? -eq 0 ]; then
log "INFO" "Argument $1 given. Checking is tag exists ... Done."
log "INFO" "Argument $1 given. Checking if tag exists ... Done."
log "INFO" "Running in release mode with tag $1."
RELEASE_VERSION=$1
else
log "ERROR" "Argument $1 given. Checking is tag exists ... Failed"
log "ERROR" "Argument $1 given. Checking if tag exists ... Failed"
log "ERROR" "Git tag $1 doesn\'t exists."
log "ERROR" "If you want to release a new LanSuite version based on a release, please create a new git tag for it."
exit 1;

0 comments on commit d3ff550

Please sign in to comment.