mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-25 15:20:08 +00:00
archlinux: fix pacweb breaking when multiple packages found (#9059)
Co-authored-by: Magnus Boman <Kattus@users.noreply.github.com>
This commit is contained in:
parent
b706a91917
commit
cea89f5439
1 changed files with 2 additions and 2 deletions
|
@ -212,8 +212,8 @@ if (( $+commands[xdg-open] )); then
|
||||||
if [[ -z "$infos" ]]; then
|
if [[ -z "$infos" ]]; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
repo="$(grep '^Repo' <<< "$infos" | grep -oP '[^ ]+$')"
|
repo="$(grep -m 1 '^Repo' <<< "$infos" | grep -oP '[^ ]+$')"
|
||||||
arch="$(grep '^Arch' <<< "$infos" | grep -oP '[^ ]+$')"
|
arch="$(grep -m 1 '^Arch' <<< "$infos" | grep -oP '[^ ]+$')"
|
||||||
xdg-open "https://www.archlinux.org/packages/$repo/$arch/$pkg/" &>/dev/null
|
xdg-open "https://www.archlinux.org/packages/$repo/$arch/$pkg/" &>/dev/null
|
||||||
}
|
}
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue