We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6249f0 commit 9ba6529Copy full SHA for 9ba6529
2 files changed
bin/terraform-apply
@@ -44,4 +44,6 @@ if [ -f "${tf_vars_file}" ]; then
44
tf_apply_args+=("-var-file=${tf_vars_file}")
45
fi
46
47
-terraform apply "${tf_apply_args[@]}"
+# tf_apply_args oddness to support Bash < v4.4
48
+# https://stackoverflow.com/a/7577209
49
+terraform apply ${tf_apply_args[@]+"${tf_apply_args[@]}"}
bin/terraform-init-and-apply
@@ -17,4 +17,6 @@ rest_args=("${@:3}")
17
18
./bin/terraform-init "${module_dir}" "${config_name}"
19
20
-./bin/terraform-apply "${module_dir}" "${config_name}" "${rest_args[@]}"
+# rest_args oddness to support Bash < v4.4
21
22
+./bin/terraform-apply "${module_dir}" "${config_name}" ${rest_args[@]+"${rest_args[@]}"}
0 commit comments