fixed some todo's bashism things

This commit is contained in:
shockrahwow 2019-07-05 12:57:15 -07:00
parent 6c804e57a4
commit 6de10846e6
2 changed files with 4 additions and 13 deletions

View File

@ -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

5
wed
View File

@ -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