diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2022-10-02 15:25:53 -0400 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2022-10-02 15:25:53 -0400 |
| commit | 87ab89cf180c8ca9f8b4888847c4b06ab5b30f61 (patch) | |
| tree | a7c10124c70cd00d9cd5a902245111e7d007eed0 /.local/bin/statusbar/sb-moonphase | |
| parent | 28a57eb59ec33308ab0e835429e9a0dcb054d07e (diff) | |
| parent | 7d7872b602adc8be021bf25b02f2372e87290aa2 (diff) | |
| download | eibhear-87ab89cf180c8ca9f8b4888847c4b06ab5b30f61.tar.gz eibhear-87ab89cf180c8ca9f8b4888847c4b06ab5b30f61.tar.zst eibhear-87ab89cf180c8ca9f8b4888847c4b06ab5b30f61.zip | |
Merge branch 'master' of github.com:LukeSmithxyz/voidrice
Diffstat (limited to '.local/bin/statusbar/sb-moonphase')
| -rwxr-xr-x | .local/bin/statusbar/sb-moonphase | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/statusbar/sb-moonphase b/.local/bin/statusbar/sb-moonphase index fab8b4d..5eb1875 100755 --- a/.local/bin/statusbar/sb-moonphase +++ b/.local/bin/statusbar/sb-moonphase @@ -4,7 +4,7 @@ moonfile="${XDG_DATA_HOME:-$HOME/.local/share}/moonphase" -[ "$(stat -c %y "$moonfile" 2>/dev/null | cut -d' ' -f1)" = "$(date '+%Y-%m-%d')" ] || +[ ! -s "$moonfile" ] && [ "$(stat -c %y "$moonfile" 2>/dev/null | cut -d' ' -f1)" = "$(date '+%Y-%m-%d')" ] || { curl -sf "wttr.in/?format=%m" > "$moonfile" || exit 1 ;} icon="$(cat "$moonfile")" |
