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 8a241dd178b9b9bbb33846204824d5b59f47b0ba
parent 58858548d62ccc69d83227be09de828a62821ec4
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Sat, 18 Apr 2020 08:57:44 +0200

Fix alt text for xkcd

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

diff --git a/.local/bin/comic b/.local/bin/comic @@ -24,7 +24,7 @@ case "$url" in f="$(curl -s --write-out "%{filename_effective}\n" -OL \ $(printf '%s' "$html" | grep 'Image URL' | head -1 | \ sed 's/^.*https/https/;s/".*$//'))" - alttext="$(printf '%s' "$html" | grep 2x | \ + alttext="$(printf '%s' "$html" | grep 2x | tail -1 | \ sed 's/.*title="//;s/".*//')";; *) (>&2 echo "unknown site")