From 75525a4386587b025674d1e9d3e7a234774af7c3 Mon Sep 17 00:00:00 2001 From: Manuel Palenzuela Date: Tue, 23 Jul 2019 20:20:09 +0200 Subject: Improved the overall scripts coehesion (POSIX) --- scripts/dwm-status | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/dwm-status b/scripts/dwm-status index 07046ba..716c9ec 100755 --- a/scripts/dwm-status +++ b/scripts/dwm-status @@ -55,9 +55,9 @@ tor() { icon_enabled="ﴣ" icon_disabled="" - status=`systemctl is-active tor.service` + status=$(systemctl is-active tor.service) - if [ $status == "active" ] + if [ "$status" == "active" ] then echo "$icon_enabled $delim" else @@ -92,9 +92,9 @@ wireless() { bluetooth() { - status=`systemctl is-active bluetooth.service` + status=$(systemctl is-active bluetooth.service) - if [ $status == "active" ] + if [ "$status" == "active" ] then echo "" else -- cgit 1.4.1