diff options
author | Magnus Boman <6226312+kattjevfel@users.noreply.github.com> | 2020-06-23 17:57:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-23 17:57:04 +0200 |
commit | cea89f54391c810198a7ace05f1063dd7e596bb7 (patch) | |
tree | 890e7cbc40f4c8e2b33599224168e2e22dcc1079 /plugins/archlinux | |
parent | b706a919172955e16a1ab97f36a95b9ee4d9f1dc (diff) | |
download | zsh-cea89f54391c810198a7ace05f1063dd7e596bb7.tar.gz zsh-cea89f54391c810198a7ace05f1063dd7e596bb7.tar.bz2 zsh-cea89f54391c810198a7ace05f1063dd7e596bb7.zip |
archlinux: fix pacweb breaking when multiple packages found (#9059)
Co-authored-by: Magnus Boman <Kattus@users.noreply.github.com>
Diffstat (limited to 'plugins/archlinux')
-rw-r--r-- | plugins/archlinux/archlinux.plugin.zsh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/archlinux/archlinux.plugin.zsh b/plugins/archlinux/archlinux.plugin.zsh index 2d0c51b3d..4d39bd86b 100644 --- a/plugins/archlinux/archlinux.plugin.zsh +++ b/plugins/archlinux/archlinux.plugin.zsh @@ -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 |