From: Brian Flowers Date: Mon, 19 Sep 2016 00:46:44 +0000 (-0400) Subject: fixing a few uses of selector function X-Git-Url: http://git.slightlycyberpunk.com%2C%20git.slightlycyberpunk.com/git/?a=commitdiff_plain;h=91b557eb695523c296f84b43a9f9fbfda6e5a58a;p=bdsm.git fixing a few uses of selector function --- diff --git a/bdsm.sh b/bdsm.sh index b3b24fe..79a22e0 100755 --- a/bdsm.sh +++ b/bdsm.sh @@ -300,7 +300,7 @@ configure() header "Configure a new host" types=$(ls /home/bdsm/bdsm.d/ | cut -d'.' -f2 | sort -u) - type=`selector "Host type" $types` + type=`selector "Host type" ${types[@]}` prompt "Hostname: " read host @@ -335,11 +335,11 @@ configure() services=$(cat /home/bdsm/.bdsm.conf.tmp | grep ":$host{" | \ sed 's/.*{\(.*\)}/\1/g' | tr ';' ' ') - service=`selector "Select a service to configure" $services "Add a service..." "Done"` + service=`selector "Select a service to configure" ${services[@]} "Add a service..." "Done"` if [ "$service" == "Add a service..." ]; then header "Add a new service" - service=`selector "Service type: " $availServices` + service=`selector "Service type: " ${availServices[@]}` elif [ "$service" == "Done" ]; then continue fi