Skip to content

Commit

Permalink
fix: open homepage
Browse files Browse the repository at this point in the history
introduced in
aa285f0
  • Loading branch information
zen0bit committed Sep 24, 2024
1 parent 790484c commit 6245fa1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions quickget
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ function pretty_name() {

# Just in case quickget want use it
function os_homepage() {
os_info "${1}" | cut -d'|' -f 4
os_info "${1}" | cut -d'|' -f 3
}

function error_specify_os() {
Expand Down Expand Up @@ -3239,7 +3239,7 @@ function open_homepage() {
if [ -z "$(os_info "${1}")" ]; then
error_specify_os
else
URL="$(os_info "${1}" | cut -d'|' -f 4)"
URL="$(os_info "${1}" | cut -d'|' -f 3)"
# shellcheck disable=SC2034
XDG_OPEN=$(xdg-open "${URL}" || sensible-browser "${URL}" || x-www-browser "${URL}" || gnome-open "${URL}")
exit 0
Expand Down

0 comments on commit 6245fa1

Please sign in to comment.