Handle no location in the text output
This commit is contained in:
parent
2efc9be21f
commit
a1d6655334
1 changed files with 5 additions and 1 deletions
|
@ -26,6 +26,10 @@ curl -Lsf -o ${WALLPAPER_LOCATION} ${photo_url}
|
||||||
nitrogen --save --set-zoom ${WALLPAPER_LOCATION}
|
nitrogen --save --set-zoom ${WALLPAPER_LOCATION}
|
||||||
|
|
||||||
#Put wallpaper info into text file (eg for Conky)
|
#Put wallpaper info into text file (eg for Conky)
|
||||||
|
if [[ "${photo_location}" == null ]] ; then
|
||||||
|
echo "Photo by ${photo_username}" > ${INFO_LOCATION}
|
||||||
|
else
|
||||||
echo "Taken in ${photo_location} by ${photo_username}" > ${INFO_LOCATION}
|
echo "Taken in ${photo_location} by ${photo_username}" > ${INFO_LOCATION}
|
||||||
|
fi
|
||||||
|
|
||||||
# vim:set ts=2 sw=2 et:
|
# vim:set ts=2 sw=2 et:
|
||||||
|
|
Loading…
Reference in a new issue