diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2020-04-30 10:31:46 -0400 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2020-04-30 10:31:46 -0400 |
| commit | 60a467de7c4fced7c9cd6a720c722e5a2a81f5da (patch) | |
| tree | eddceadc046068e5380355271b640c53e3501c47 /.local/bin | |
| parent | 53ef201c08d2180a371b3d9a6c5e35cbe1f88230 (diff) | |
| download | eibhear-60a467de7c4fced7c9cd6a720c722e5a2a81f5da.tar.gz eibhear-60a467de7c4fced7c9cd6a720c722e5a2a81f5da.tar.zst eibhear-60a467de7c4fced7c9cd6a720c722e5a2a81f5da.zip | |
ugly minor intro bugfixes
Diffstat (limited to '.local/bin')
| -rwxr-xr-x | .local/bin/statusbar/crypto | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/.local/bin/statusbar/crypto b/.local/bin/statusbar/crypto index 88b2365..31e88b3 100755 --- a/.local/bin/statusbar/crypto +++ b/.local/bin/statusbar/crypto @@ -8,8 +8,7 @@ coins="Bitcoin;btc;💰 Etherium;eth;🍸 Basic Attention Token;bat;🦁 -LBC;lbc;📚 -" +LBC;lbc;📚" # Directory where currency info is stored. dir="${XDG_DATA_HOME:-$HOME/.local/share}/crypto-prices" @@ -33,7 +32,7 @@ printprices() { # Print/format all prices done | sed 's/ $//' } -mkdir -p "$dir" +[ ! -d "$dir" ] && mkdir -p "$dir" && { getprices; exit ;} # If currencies haven't been updated today, try to update them. [ "$(stat -c %x "$HOME/.local/share/crypto-prices" | cut -d' ' -f1)" != "$(date '+%Y-%m-%d')" ] && |
