fix for default

This commit is contained in:
Daniel Tsvetkov 2017-12-14 11:48:10 +02:00
parent 5ec15075f9
commit 97711acf36
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
#!/bin/bash
NASA_APOD_BASE_URL="https://apod.nasa.gov/apod"
IMAGE_URL=`curl -s $NASA_APOD_BASE_URL/astropix.html | grep -oh 'href="image/.*"' | grep -oh 'image/.*jpg' | head -1`
if [ ! -z "$IMAGE_URL" ]; then
if [ -z "$IMAGE_URL" ]; then
curl -s "$NASA_APOD_BASE_URL/$IMAGE_URL" > image.jpg
gsettings set org.gnome.desktop.background picture-uri "file:///home/pi2/Pictures/wallpapers/blue_galaxy_wallpaper.png"
else