Skip to content

Commit

Permalink
Preserve compatibility of command url with v2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
nivit committed Oct 28, 2021
1 parent 72e72b2 commit 8816b21
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions news.sh
Original file line number Diff line number Diff line change
Expand Up @@ -777,17 +777,13 @@ main() {
# show news on the bar
/usr/bin/printf "%s" "${output}"
exit 0
elif [ "$1" = "open" ]; then
elif [ "$1" = "open" ] || [ "$1" = "url" ]; then
parse_news_line "$(cat "${news_url}")"
"${open_cmd}" "${url}"&
exit 0
elif [ "$1" = "search" ] || [ "$1" = "show_menu" ]; then
search
exit 0
elif [ "$1" = "url" ]; then
parse_news_line "$(cat "${news_url}")"
cat "${news_url}"&
exit 0
elif [ "$1" = "download" ]; then
print_msg warning "Downloading news/podcasts feeds"
download_feeds
Expand Down

0 comments on commit 8816b21

Please sign in to comment.