summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2017-04-20 18:05:04 +1200
committerDavid Phillips <david@sighup.nz>2017-04-20 18:05:04 +1200
commitabee89d80e889a682fc239e71f4acb65b1c76dcf (patch)
tree6ce6ace26f0d1898a69037d4f7050b982b329572
parentf8f974f175f964a6f147e72299a1898c50bfce50 (diff)
downloaddotfiles-abee89d80e889a682fc239e71f4acb65b1c76dcf.tar.xz
Don't keep building currency string each iteration
-rwxr-xr-xlocal/bin/update-dwm-bar1
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) "