diff options
author | Stefan Giehl <stefan@matomo.org> | 2021-02-26 11:37:31 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-26 11:37:31 +0300 |
commit | 10c56b158ca481f786776b29c88f2455f9e821ad (patch) | |
tree | e58eecbd9796cab0c0e615f7c077675631beb1e1 /.github | |
parent | dc45d87551d2f6f26b247002fe74bd07458630c4 (diff) |
fix submodule action
Diffstat (limited to '.github')
-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 ]] |