From 40e62e1c205c4e39d953fcde2901ebc907bdbe22 Mon Sep 17 00:00:00 2001 From: Alex Jurkiewicz Date: Tue, 25 Feb 2020 15:57:19 +1100 Subject: [PATCH] Fix a condition The old behaviour didn't cause issues, because setting a working dir of "" is equivalent to setting ".". But better to fix this behaviour. --- src/main.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.sh b/src/main.sh index c47bada2..b8d58c13 100755 --- a/src/main.sh +++ b/src/main.sh @@ -33,7 +33,7 @@ function parseInputs { # Optional inputs tfWorkingDir="." - if [ "${INPUT_TF_ACTIONS_WORKING_DIR}" != "" ] || [ "${INPUT_TF_ACTIONS_WORKING_DIR}" != "." ]; then + if [[ -n "${INPUT_TF_ACTIONS_WORKING_DIR}" ]]; then tfWorkingDir=${INPUT_TF_ACTIONS_WORKING_DIR} fi