From 15d2934f146af634d96fdc20ba5237c09e55d157 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Fri, 15 Dec 2017 15:12:14 +0100 Subject: Fix setbg --- i3/bin/setbg-texample | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'i3/bin/setbg-texample') diff --git a/i3/bin/setbg-texample b/i3/bin/setbg-texample index 610c54f..c1968a5 100755 --- a/i3/bin/setbg-texample +++ b/i3/bin/setbg-texample @@ -8,7 +8,7 @@ FONT_SIZE=20 CURL="curl -s" # Test internet -timeout 4 wget -q --spider http://texample.net || setbg-backup +timeout 4 wget -q --spider http://texample.net || setbg-backup || exit 1 let "SCR_WIDTH -= 2 * $PADDING" let "SCR_WIDTH /= 2" @@ -20,7 +20,7 @@ echo "TeXample page: http://texample.net/tikz/examples/all/?page=$PAGE" # Fetch list of texamples cd /tmp -$CURL -o texample.html "http://texample.net/tikz/examples/all/?page=$PAGE" || setbg-backup +$CURL -o texample.html "http://texample.net/tikz/examples/all/?page=$PAGE" || setbg-backup || exit 1 EXAMPLES="$(grep '^