Skip to content

Commit

Permalink
updated excluded.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
HariSekhon committed Sep 21, 2024
1 parent 5ff3711 commit fbd9c0f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/excluded.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ isExcluded(){
fi
fi
# this external git check is expensive, skip it when in CI as using fresh git checkouts
is_CI && return 1
# shellcheck disable=SC2230
if type -P git &>/dev/null; then
commit="$(git log "$prog" 2>/dev/null | head -n1 | grep 'commit' || :)"
if [ -z "$commit" ]; then
return 0
fi
fi
#is_CI && return 1
## shellcheck disable=SC2230
#if type -P git &>/dev/null; then
# commit="$(git log "$prog" 2>/dev/null | head -n1 | grep 'commit' || :)"
# if [ -z "$commit" ]; then
# return 0
# fi
#fi
return 1
}

0 comments on commit fbd9c0f

Please sign in to comment.