From f62478efe2ef644b46e8c88f8ba5c9e15eeec4d0 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Mon, 31 Dec 2018 22:39:02 +0000 Subject: [PATCH] fix: sh and = License: MIT Signed-off-by: Henrique Dias --- wizard.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/wizard.sh b/wizard.sh index c15eddd7..f90c2c3c 100755 --- a/wizard.sh +++ b/wizard.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh set -e @@ -20,7 +20,7 @@ debugInfo () { } dockerLogin () { - if [ "$CI" == "true" ]; then + if [ "$CI" = "true" ]; then gpg --batch --gen-key <<-EOF %echo Generating a standard key Key-Type: DSA @@ -47,7 +47,7 @@ EOF } dockerLogout () { - if [ "$CI" == "true" ]; then + if [ "$CI" = "true" ]; then docker logout fi } @@ -297,24 +297,24 @@ while getopts "pdlbr:" o; do done shift $((OPTIND-1)) -if [ "$DEBUG" == "true" ]; then +if [ "$DEBUG" = "true" ]; then debugInfo fi -if [ "$LINT" == "true" ]; then +if [ "$LINT" = "true" ]; then lint fi -if [ "$BUILD" == "true" ]; then +if [ "$BUILD" = "true" ]; then build fi -if [ "$PUSH_LATEST" == "true" ]; then +if [ "$PUSH_LATEST" = "true" ]; then dockerPushLatest fi if [ "$RELEASE" != "" ]; then - if [ "$CI" == "true" ]; then + if [ "$CI" = "true" ]; then ciRelease else release $RELEASE