From abee89d80e889a682fc239e71f4acb65b1c76dcf Mon Sep 17 00:00:00 2001 From: David Phillips Date: Thu, 20 Apr 2017 18:05:04 +1200 Subject: Don't keep building currency string each iteration --- local/bin/update-dwm-bar | 1 + 1 file changed, 1 insertion(+) 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) " -- cgit v1.1