about summary refs log tree commit diff
diff options
context:
space:
mode:
authorManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2019-07-23 20:20:09 +0200
committerManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2019-07-23 20:20:09 +0200
commit75525a4386587b025674d1e9d3e7a234774af7c3 (patch)
tree4fe830822f14d55cc85929370e833bb1c02ba63f
parentAdded support for devel update checking (1.5/2) (diff)
downloaddwm-75525a4386587b025674d1e9d3e7a234774af7c3.tar.gz
dwm-75525a4386587b025674d1e9d3e7a234774af7c3.tar.bz2
dwm-75525a4386587b025674d1e9d3e7a234774af7c3.zip
Improved the overall scripts coehesion (POSIX)
-rwxr-xr-xscripts/dwm-status8
1 files 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