Skip to content

Commit 1d22727

Browse files
committed
Fix syntax error on the common script
Signed-off-by: Borja Clemente <[email protected]>
1 parent 2cd5cf5 commit 1d22727

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)