File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -46,8 +46,8 @@ if [ "$skip_ci_disabled" = "true" ] && \
4646 [ -z " $ignore_paths " ] && \
4747 [ -z " $tag_filter " ] && \
4848 [ -z " $tag_regex " ] && \
49- jq -e ' length == 0' <<< " $filter_include" && \
50- jq -e ' length == 0' <<< " $filter_exclude"
49+ jq -e ' length == 0' <<< " $filter_include" & > /dev/null & & \
50+ jq -e ' length == 0' <<< " $filter_exclude" & > /dev/null
5151then
5252 branchflag=" HEAD"
5353 if [ -n " $branch " ]; then
7373
7474for filter in " $filter_include " " $filter_exclude "
7575do
76- if jq -e ' type != "array"' <<< " $filter"
76+ if jq -e ' type != "array"' <<< " $filter" & > /dev/null
7777 then
7878 echo ' invalid commit filter (expected array of strings)'
7979 echo " $filter "
127127fi
128128
129129list_command=" git rev-list --all --first-parent $log_range $paths_search "
130- if jq -e ' length > 0' <<< " $filter_include"
130+ if jq -e ' length > 0' <<< " $filter_include" & > /dev/null
131131then
132132 list_command+=" | git rev-list --stdin --date-order --first-parent --no-walk=unsorted "
133133 include_items=$( echo $filter_include | jq -r -c ' .[]' )
140140 fi
141141fi
142142
143- if jq -e ' length > 0' <<< " $filter_exclude"
143+ if jq -e ' length > 0' <<< " $filter_exclude" & > /dev/null
144144then
145145 list_command+=" | git rev-list --stdin --date-order --invert-grep --first-parent --no-walk=unsorted "
146146 exclude_items=$( echo $filter_exclude | jq -r -c ' .[]' )
You can’t perform that action at this time.
0 commit comments