diff --git a/action.yml b/action.yml index 2df589d..9ff0341 100644 --- a/action.yml +++ b/action.yml @@ -18,12 +18,12 @@ runs: run: | if [[ ! -z "${{ inputs.repo }}" ]] then - REPO_ARGS=-C "${{ inputs.repo }}" + REPO_ARGS=(-C "${{ inputs.repo }}") else - REPO_ARGS= + REPO_ARGS=() fi - SUBMODULES="$(git $REPO_ARGS submodule)" + SUBMODULES="$(git "${REPO_ARGS[@]}" submodule)" if [[ $? -ne 0 ]] then echo ERROR git submodule failed