pretty code

This commit is contained in:
Hekuran 2020-07-01 21:05:12 +02:00 committed by GitHub
parent 9f3b1f359e
commit 49d645620b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,12 +13,12 @@ curl -sf "$city" | \
echo "🌄 Sunrise" > $sunfile
echo "$( grep Sunrise $sundata | grep -o "[[:digit:]]""[[:digit:]]":"[[:digit:]]""[[:digit:]]" )" >> $sunfile
echo "$( grep Sunrise $sundata | grep -o direction.......... | sed 's/direction //' )" >> $sunfile
echo "$( grep Sunrise $sundata | grep -o "direction.\{10\}" | sed 's/direction //' )" >> $sunfile
echo "$( grep Sunrise $sundata | grep -o "[0-9]*°" )" >> $sunfile
echo "\n🌇 Sunset" >> $sunfile
echo "$( grep Sunset $sundata | grep -o "[[:digit:]]""[[:digit:]]":"[[:digit:]]""[[:digit:]]" )" >> $sunfile
echo "$( grep Sunset $sundata | grep -o direction.......... | sed 's/direction //' )" >> $sunfile
echo "$( grep Sunset $sundata | grep -o "direction.\{10\}" | sed 's/direction //' )" >> $sunfile
echo "$( grep Sunset $sundata | grep -o "[0-9]*°" )" >> $sunfile
}