fix: sh and =
License: MIT Signed-off-by: Henrique Dias <hacdias@gmail.com>
This commit is contained in:
parent
7a9d8e1637
commit
f62478efe2
16
wizard.sh
16
wizard.sh
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
@ -20,7 +20,7 @@ debugInfo () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dockerLogin () {
|
dockerLogin () {
|
||||||
if [ "$CI" == "true" ]; then
|
if [ "$CI" = "true" ]; then
|
||||||
gpg --batch --gen-key <<-EOF
|
gpg --batch --gen-key <<-EOF
|
||||||
%echo Generating a standard key
|
%echo Generating a standard key
|
||||||
Key-Type: DSA
|
Key-Type: DSA
|
||||||
@ -47,7 +47,7 @@ EOF
|
|||||||
}
|
}
|
||||||
|
|
||||||
dockerLogout () {
|
dockerLogout () {
|
||||||
if [ "$CI" == "true" ]; then
|
if [ "$CI" = "true" ]; then
|
||||||
docker logout
|
docker logout
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@ -297,24 +297,24 @@ while getopts "pdlbr:" o; do
|
|||||||
done
|
done
|
||||||
shift $((OPTIND-1))
|
shift $((OPTIND-1))
|
||||||
|
|
||||||
if [ "$DEBUG" == "true" ]; then
|
if [ "$DEBUG" = "true" ]; then
|
||||||
debugInfo
|
debugInfo
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$LINT" == "true" ]; then
|
if [ "$LINT" = "true" ]; then
|
||||||
lint
|
lint
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$BUILD" == "true" ]; then
|
if [ "$BUILD" = "true" ]; then
|
||||||
build
|
build
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$PUSH_LATEST" == "true" ]; then
|
if [ "$PUSH_LATEST" = "true" ]; then
|
||||||
dockerPushLatest
|
dockerPushLatest
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$RELEASE" != "" ]; then
|
if [ "$RELEASE" != "" ]; then
|
||||||
if [ "$CI" == "true" ]; then
|
if [ "$CI" = "true" ]; then
|
||||||
ciRelease
|
ciRelease
|
||||||
else
|
else
|
||||||
release $RELEASE
|
release $RELEASE
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user