From 6de10846e6a8710eff81be941a9f0260542c9dbc Mon Sep 17 00:00:00 2001 From: shockrahwow Date: Fri, 5 Jul 2019 12:57:15 -0700 Subject: [PATCH] fixed some todo's bashism things --- readme.md | 12 +----------- wed | 5 +++-- 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/readme.md b/readme.md index 6702fc0..1fece4e 100644 --- a/readme.md +++ b/readme.md @@ -15,18 +15,8 @@ Scale 0-5 * 0 = High priority * 5 = Low priority -bright -* Remove some bashism that the script is heavily reliant on - -usbm +usbm 0 * Actually finishing the userland mount script -wed - -* Remove bashism's from wifi enabler/disabler - -ytdl - -* Remove bashism's from ytdl script diff --git a/wed b/wed index a3af57e..1cc2a70 100755 --- a/wed +++ b/wed @@ -1,4 +1,5 @@ #!/bin/bash -choice=$(printf "on\noff" | dmenu -i -p "Wifi $(nmcli r w)") -[ -z "$choice" ] && exit 0 +stat=`nmcli r w` +choice=`printf "on\noff" | dmenu -i -p "Wifi $stat"` +if [ -z "$choice" ]; then exit;fi nmcli r w $choice