File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ main() {
2323 local db_size_prev
2424 local connections
2525 local return_code=0
26+ local opted_out
27+ local opted_out_before
2628 connections=$( mktemp) || exit 1
2729 temp_connections=$( mktemp) || exit 1
2830
@@ -101,10 +103,11 @@ main() {
101103 clean_owners " $BKG_OPTOUT "
102104 opted_out=$( wc -l < " $BKG_OPTOUT " )
103105 opted_out_before=$( get_BKG BKG_OUT)
106+ fast_out=$( [ " $GITHUB_OWNER " = " ipitio" ] && [ -n " $opted_out_before " ] && (( opted_out_before < opted_out )) && echo " true" || echo " false" )
104107
105108 if [ " $BKG_MODE " -ne 2 ]; then
106109 if [ " $BKG_MODE " -eq 0 ] || [ " $BKG_MODE " -eq 3 ]; then
107- if [ " $GITHUB_OWNER " = " ipitio " ] && [ -n " $opted_out_before " ] && (( opted_out_before < opted_out )) ; then
110+ if $fast_out ; then
108111 grep -oP ' ^[^\/]+' " $BKG_OPTOUT " | env_parallel --lb save_owner
109112 return_code=1
110113 else
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ update_package() {
110110 return
111111 fi
112112 done
113- elif [ -n " $opted_out_before " ] && (( opted_out_before < opted_out )) ; then
113+ elif $fast_out ; then
114114 return
115115 fi
116116
You can’t perform that action at this time.
0 commit comments