Skip to content

Commit 95ad6c3

Browse files
pietroalbinitesuji
andauthored
Apply suggestions from lzutao
Co-Authored-By: lzutao <taolzu@gmail.com>
1 parent 4fb8a9a commit 95ad6c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ci/scripts/should-skip-this.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ source "$(cd "$(dirname "$0")" && pwd)/../shared.sh"
1010

1111
if [[ -z "${CI_ONLY_WHEN_SUBMODULES_CHANGED+x}" ]]; then
1212
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
13+
elif git diff HEAD^ | grep --quiet "^index .* 160000"; then
1414
# Submodules pseudo-files inside git have the 160000 permissions, so when
1515
# those files are present in the diff a submodule was updated.
1616
echo "Executing the job since submodules are updated"

0 commit comments

Comments
 (0)