diff options
author | David Phillips <david@sighup.nz> | 2017-04-20 18:05:04 +1200 |
---|---|---|
committer | David Phillips <david@sighup.nz> | 2017-04-20 18:05:04 +1200 |
commit | abee89d80e889a682fc239e71f4acb65b1c76dcf (patch) | |
tree | 6ce6ace26f0d1898a69037d4f7050b982b329572 | |
parent | f8f974f175f964a6f147e72299a1898c50bfce50 (diff) | |
download | dotfiles-abee89d80e889a682fc239e71f4acb65b1c76dcf.tar.xz |
Don't keep building currency string each iteration
-rwxr-xr-x | local/bin/update-dwm-bar | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/local/bin/update-dwm-bar b/local/bin/update-dwm-bar index bde7aeb..6a656b6 100755 --- a/local/bin/update-dwm-bar +++ b/local/bin/update-dwm-bar @@ -7,6 +7,7 @@ while true; do if hash upsc 2>/dev/null; then ups="UPS: $(upsc eaton5e@zoidberg battery.charge)% $sep " fi + currency= if [ ! -z "$(ls -A ~/.cache/currency/)" ] ; then for c in ~/.cache/currency/* ; do currency="$currency$(cat $c) " |