Unverified Commit cea89f54 authored by Magnus Boman's avatar Magnus Boman Committed by GitHub
Browse files

archlinux: fix pacweb breaking when multiple packages found (#9059)


Co-authored-by: default avatarMagnus Boman <Kattus@users.noreply.github.com>
parent b706a919
......@@ -212,8 +212,8 @@ if (( $+commands[xdg-open] )); then
if [[ -z "$infos" ]]; then
return
fi
repo="$(grep '^Repo' <<< "$infos" | grep -oP '[^ ]+$')"
arch="$(grep '^Arch' <<< "$infos" | grep -oP '[^ ]+$')"
repo="$(grep -m 1 '^Repo' <<< "$infos" | grep -oP '[^ ]+$')"
arch="$(grep -m 1 '^Arch' <<< "$infos" | grep -oP '[^ ]+$')"
xdg-open "https://www.archlinux.org/packages/$repo/$arch/$pkg/" &>/dev/null
}
fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment