From 78697220ebcf99e8d8632bea3db20bb81a4495c2 Mon Sep 17 00:00:00 2001 From: "flyingscorpio@arch-desktop" Date: Mon, 23 Aug 2021 09:53:36 +0200 Subject: [PATCH] Fix awk command because of change in xkcd source --- dotfiles/xkcd_wallpaper.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotfiles/xkcd_wallpaper.sh b/dotfiles/xkcd_wallpaper.sh index 1f847e7..4826d13 100755 --- a/dotfiles/xkcd_wallpaper.sh +++ b/dotfiles/xkcd_wallpaper.sh @@ -1,3 +1,3 @@ #!/bin/sh -curl -s "$(curl -sL https://c.xkcd.com/random/comic | grep 'Image URL' | awk '{print $5}')" -o ~/Pictures/xkcd-wallpaper.png +curl -s "$(curl -sL https://c.xkcd.com/random/comic | grep 'Image URL' | awk -F\" '{print $2}')" -o ~/Pictures/xkcd-wallpaper.png