Skip to content

Commit c6eb71b

Browse files
authored
Merge pull request #494 from clebs/fix-common-script
Fix syntax error on the common script
2 parents 1009e57 + 1d22727 commit c6eb71b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

deploy/common.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ readonly KUBECTL="${GCE_PD_KUBECTL:-kubectl}"
88
# Common functions
99

1010
function ensure_var(){
11-
if [[ -v "${1}" ]];
11+
if [[ -z "${!1}" ]];
1212
then
13-
echo "${1} is ${!1}"
14-
else
1513
echo "${1} is unset"
1614
exit 1
15+
else
16+
echo "${1} is ${!1}"
1717
fi
1818
}
1919

0 commit comments

Comments
 (0)