We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4fb8a9a commit 95ad6c3Copy full SHA for 95ad6c3
src/ci/scripts/should-skip-this.sh
@@ -10,7 +10,7 @@ source "$(cd "$(dirname "$0")" && pwd)/../shared.sh"
10
11
if [[ -z "${CI_ONLY_WHEN_SUBMODULES_CHANGED+x}" ]]; then
12
echo "Executing the job since there is no skip rule in effect"
13
-elif git diff HEAD^ | grep "^index .* 160000" >/dev/null 2>&1; then
+elif git diff HEAD^ | grep --quiet "^index .* 160000"; then
14
# Submodules pseudo-files inside git have the 160000 permissions, so when
15
# those files are present in the diff a submodule was updated.
16
echo "Executing the job since submodules are updated"
0 commit comments