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 3c3f291931851fcadb0922c5eb0ed6e4f64f77c0
parent 2432521659ce9e28ca3328daff25aa4a23c7c1ee
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Wed, 13 Nov 2019 10:30:26 +0100

Fix syntax during URL parsing

Diffstat:
M.local/bin/linkhandler | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/.local/bin/linkhandler b/.local/bin/linkhandler @@ -54,14 +54,14 @@ handle_url() { nohup comic "$url" >/dev/null 2>&1 & ;; "download") if type -v hurl >/dev/null 2>&1; then - echo "hurl '$url' >/dev/null" | at now;; + echo "hurl '$url' >/dev/null" | at now elif type -v hurl >/dev/null 2>&1; then - echo "curl -LO '$url' >/dev/null" | at now;; + echo "curl -LO '$url' >/dev/null" | at now elif type -v wget >/dev/null 2>&1; then - echo "wget '$url' >/dev/null" | at now;; + echo "wget '$url' >/dev/null" | at now else die 'Error: no download program found' - fi + fi;; "html to pdf") out="$HOME/tmp/html_to_pdf_$(date +'%F-%T')".pdf && \ wkhtmltopdf "$url" "$out" && \