File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -81,11 +81,11 @@ update_package() {
8181 local owner_out
8282 local repo_out
8383 local package_out
84- mapfile -t match_a < <( perl -pe ' s,\ /(?=\ /),\n,g' <<< " $match" )
84+ mapfile -t match_a < <( perl -pe ' s,/(?=/),\n,g' <<< " $match" )
8585 owner_out=$( [[ " $owner " == " ${match_a[0]} " ]] || [[ " ${match_a[0]} " =~ ^/ && " $owner " =~ $( sed ' s/^\/\(.*\)/\1/' <<< " ${match_a[0]}" ) ]] && echo true || echo false)
8686 repo_out=$( (( ${# match_a[@]} < 2 )) || [[ " $repo " == " ${match_a[1]} " ]] || [[ " ${match_a[1]} " =~ ^/ && " $repo " =~ $( sed ' s/^\/\(.*\)/\1/' <<< " ${match_a[1]}" ) ]] && echo true || echo false)
8787 package_out=$( (( ${# match_a[@]} < 3 )) || [[ " $package " == " ${match_a[2]} " ]] || [[ " ${match_a[2]} " =~ ^/ && " $package " =~ $( sed ' s/^\/\(.*\)/\1/' <<< " ${match_a[2]}" ) ]] && echo true || echo false)
88-
88+ echo -e " match: ${match_a[*]} \nowner: $owner_out \nrepo: $repo_out \npkg: $package_out \n "
8989 if $owner_out && $repo_out && $package_out ; then
9090 optout_package " $owner_id " " $owner " " $repo " " $package " " $table_version_name "
9191 return
You can’t perform that action at this time.
0 commit comments