diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2022-10-17 09:10:13 -0400 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2022-10-17 09:10:13 -0400 |
| commit | b95276922ed2a16aaec70f9409e5ab492152b1d3 (patch) | |
| tree | 3687481fd540d82359bca66ed5894592e7e8c4d7 /.local/bin/statusbar/sb-moonphase | |
| parent | d8b5f16c2008c8dda1c924b4cce9c553c3a4eab9 (diff) | |
| parent | cc7ac4619a698459da2af57bea098f646a2f3d62 (diff) | |
| download | eibhear-b95276922ed2a16aaec70f9409e5ab492152b1d3.tar.gz eibhear-b95276922ed2a16aaec70f9409e5ab492152b1d3.tar.zst eibhear-b95276922ed2a16aaec70f9409e5ab492152b1d3.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 5eb1875..99adaee 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" -[ ! -s "$moonfile" ] && [ "$(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")" |
