forecast-sky (283B)
1 #!/bin/sh 2 3 tmpfile=$(mktemp).png 4 curl --location \ 5 'http://www.cleardarksky.com/c/AAAP1_NJcsk.gif?c=468010'\ 6 --output "$tmpfile" 7 if command -v open >/dev/null 2>&1; then 8 open "$tmpfile" 9 elif command -v xdg-open >/dev/null 2>&1; then 10 xdg-open "$tmpfile" 11 else 12 echo "$tmpfile" 13 fi 14