Skip to content

Commit f5b70b9

Browse files
committed
Merge branch 'master' of https://github.com/ipitio/backage
2 parents fb74e04 + d5258e4 commit f5b70b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/package.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)