dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 3ab52ac90eb4a8c8c4d8df76467f34f09b769322
parent 9d0115220acaaaa9c09380082218b4a072840d95
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Thu,  9 Jul 2020 11:57:46 +0200

Improve error message on invalid url

Diffstat:
M.local/bin/comic | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/.local/bin/comic b/.local/bin/comic @@ -47,8 +47,7 @@ process_url() { $fetcher "$(sed -nE '/.*<meta property="og:image" content="([^"]*)">/{ s//\1/;p; }' "$html")" > "$img";; *) - (>&2 echo "unknown site") - exit 1;; + die "unknown site: $1";; esac xdg-open "$img"