Переглянути джерело

Merge pull request #35 from liangxia/master

suppress error unbound variable
Thomas Wiest 10 роки тому
батько
коміт
2848232bda
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      cluster.sh

+ 1 - 1
cluster.sh

@@ -4,7 +4,7 @@ MINIONS=3
 MASTERS=1
 MASTERS=1
 
 
 # If the environment variable OO_PROVDER is defined, it used for the provider
 # If the environment variable OO_PROVDER is defined, it used for the provider
-PROVIDER=$OO_PROVIDER
+PROVIDER=${OO_PROVIDER:-''}
 # Otherwise, default is gce (Google Compute Engine)
 # Otherwise, default is gce (Google Compute Engine)
 if [ "x$PROVIDER" == "x" ];then
 if [ "x$PROVIDER" == "x" ];then
    PROVIDER=gce
    PROVIDER=gce