Skip to content

Commit 556203c

Browse files
committed
Make early variables available for init without backend
1 parent 389e412 commit 556203c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

image/actions.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ function set-common-plan-args() {
392392
function set-variable-args() {
393393
VARIABLE_ARGS=""
394394

395-
if [[ -n "$INPUT_VAR_FILE" ]]; then
395+
if [[ -n "${INPUT_VAR_FILE:-}" ]]; then
396396
for file in $(echo "$INPUT_VAR_FILE" | tr ',' '\n'); do
397397

398398
if [[ ! -f "$file" ]]; then
@@ -404,7 +404,7 @@ function set-variable-args() {
404404
done
405405
fi
406406

407-
if [[ -n "$INPUT_VARIABLES" ]]; then
407+
if [[ -n "${INPUT_VARIABLES:-}" ]]; then
408408
echo "$INPUT_VARIABLES" >"$STEP_TMP_DIR/variables.tfvars"
409409
VARIABLE_ARGS="$VARIABLE_ARGS -var-file=$STEP_TMP_DIR/variables.tfvars"
410410
fi

0 commit comments

Comments
 (0)