Add empty default for val as well

Probably better than referencing possible unset vars
This commit is contained in:
Patrik Lundin 2025-02-05 20:39:41 +01:00
parent d4bbe84196
commit 757ba88436
Signed by: patlu
GPG key ID: A0A812BA2249F294

View file

@ -9,6 +9,7 @@ if [ -n "$INPUT_WORKDIR" ]; then
fi
context_flag=""
context_flag_val=""
if [ -n "$INPUT_CONTEXT" ]; then
context_flag="--context"
context_flag_val="$INPUT_CONTEXT"