Skip to content
This repository was archived by the owner on May 6, 2020. It is now read-only.

Commit cd8167c

Browse files
Fix a condition (#145)
The old behaviour didn't cause issues, because setting a working dir of "" is equivalent to setting ".". But better to fix this behaviour.
1 parent 49492a0 commit cd8167c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function parseInputs {
3333

3434
# Optional inputs
3535
tfWorkingDir="."
36-
if [ "${INPUT_TF_ACTIONS_WORKING_DIR}" != "" ] || [ "${INPUT_TF_ACTIONS_WORKING_DIR}" != "." ]; then
36+
if [[ -n "${INPUT_TF_ACTIONS_WORKING_DIR}" ]]; then
3737
tfWorkingDir=${INPUT_TF_ACTIONS_WORKING_DIR}
3838
fi
3939

0 commit comments

Comments
 (0)