fix: open homepage

introduced in
aa285f0f6e
This commit is contained in:
zenobit 2024-09-24 16:42:40 +02:00 committed by Martin Wimpress
parent c915522962
commit 3a20b31b49
1 changed files with 2 additions and 2 deletions

View File

@ -132,7 +132,7 @@ function pretty_name() {
# Just in case quickget want use it # Just in case quickget want use it
function os_homepage() { function os_homepage() {
os_info "${1}" | cut -d'|' -f 4 os_info "${1}" | cut -d'|' -f 3
} }
function error_specify_os() { function error_specify_os() {
@ -3239,7 +3239,7 @@ function open_homepage() {
if [ -z "$(os_info "${1}")" ]; then if [ -z "$(os_info "${1}")" ]; then
error_specify_os error_specify_os
else else
URL="$(os_info "${1}" | cut -d'|' -f 4)" URL="$(os_info "${1}" | cut -d'|' -f 3)"
# shellcheck disable=SC2034 # shellcheck disable=SC2034
XDG_OPEN=$(xdg-open "${URL}" || sensible-browser "${URL}" || x-www-browser "${URL}" || gnome-open "${URL}") XDG_OPEN=$(xdg-open "${URL}" || sensible-browser "${URL}" || x-www-browser "${URL}" || gnome-open "${URL}")
exit 0 exit 0