diff options
Diffstat (limited to '.github/workflows/submodules.yml')
-rw-r--r-- | .github/workflows/submodules.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.github/workflows/submodules.yml b/.github/workflows/submodules.yml index bce7850424..d3125a90ae 100644 --- a/.github/workflows/submodules.yml +++ b/.github/workflows/submodules.yml @@ -47,7 +47,7 @@ jobs: run: | git submodule | grep -oE '^\+[0-9a-f]+ ([A-z\/\-]+)' | cut -d' ' -f 2 | xargs -r git add IFS=$'\n' - changes=( $(git diff --staged --numstat | grep -oE '[A-z0-9\/\-]{2,}' ) ) + changes=( $(git diff --staged --numstat | grep -oE '[A-z0-9\/\-]{2,}' || true ) ) # abort here if no change available if [[ ${#changes[@]} -eq 0 ]] |