diff --git a/scripts/deploy_latest.sh b/scripts/deploy_latest.sh index 3b4250900c..2e21eeea27 100755 --- a/scripts/deploy_latest.sh +++ b/scripts/deploy_latest.sh @@ -46,7 +46,9 @@ yq eval -i '.tables = []' deploy/storage/base_bigtable_info.yaml for src in $(gsutil ls gs://datcom-control/autopush/*_latest_base_cache_version.txt); do echo "Copying $src" export TABLE="$(gsutil cat "$src")" - yq eval -i '.tables += [env(TABLE)]' deploy/storage/base_bigtable_info.yaml + if [[ $TABLE != "" ]]; then + yq eval -i '.tables += [env(TABLE)]' deploy/storage/base_bigtable_info.yaml + fi done cd $ROOT @@ -62,7 +64,7 @@ do export index=$index REGION=$(yq eval '.region.others[env(index)]' deploy/gke/"$ENV".yaml) echo $REGION - if [[ $REGION != '' ]]; then + if [[ $REGION != "" ]]; then $ROOT/scripts/deploy_gke_helm.sh -e $ENV -l $REGION fi done \ No newline at end of file