realwallpaper: keep old markers if new ones are empty
This commit is contained in:
parent
813eefa3c5
commit
170d54681b
@ -108,7 +108,10 @@ pkgs.writers.writeDashBin "generate-wallpaper" ''
|
|||||||
'https://neo.sci.gsfc.nasa.gov/view.php?datasetId=MOD14A1_E_FIRE') &
|
'https://neo.sci.gsfc.nasa.gov/view.php?datasetId=MOD14A1_E_FIRE') &
|
||||||
|
|
||||||
# regular fetches
|
# regular fetches
|
||||||
fetch marker.json "$marker_url" &
|
fetch marker.json.tmp "$marker_url"
|
||||||
|
if [ -s marker.json.tmp ]; then
|
||||||
|
mv marker.json.tmp marker.json
|
||||||
|
fi
|
||||||
fetch sun-raw.jpg 'https://sdo.gsfc.nasa.gov/assets/img/latest/latest_512_0171.jpg' &
|
fetch sun-raw.jpg 'https://sdo.gsfc.nasa.gov/assets/img/latest/latest_512_0171.jpg' &
|
||||||
|
|
||||||
wait
|
wait
|
||||||
|
Loading…
Reference in New Issue
Block a user