fix: properly detect release builds

This commit is contained in:
Jose Diaz-Gonzalez
2017-03-31 17:08:03 -06:00
parent 4723b27f2c
commit 28281ae4d4

View File

@@ -82,7 +82,7 @@ fn-in-array() {
fn-is-release() {
declare desc="Checks if a given run is a release run"
declare RELEASE="$2"
declare RELEASE="$1"
local IS_RELEASE=false
if [[ "$RELEASE" == "major" ]] || [[ "$RELEASE" == "minor" ]] || [[ "$RELEASE" == "patch" ]]; then
IS_RELEASE=true