Fix REPO_ARGS again

This commit is contained in:
2021-09-18 23:42:48 +02:00
committed by GitHub
parent 6b3cc81cae
commit d4c9211942

View File

@ -18,12 +18,12 @@ runs:
run: | run: |
if [[ ! -z "${{ inputs.repo }}" ]] if [[ ! -z "${{ inputs.repo }}" ]]
then then
REPO_ARGS=-C "${{ inputs.repo }}" REPO_ARGS=(-C "${{ inputs.repo }}")
else else
REPO_ARGS= REPO_ARGS=()
fi fi
SUBMODULES="$(git $REPO_ARGS submodule)" SUBMODULES="$(git "${REPO_ARGS[@]}" submodule)"
if [[ $? -ne 0 ]] if [[ $? -ne 0 ]]
then then
echo ERROR git submodule failed echo ERROR git submodule failed