From 91b557eb695523c296f84b43a9f9fbfda6e5a58a Mon Sep 17 00:00:00 2001 From: Brian Flowers Date: Sun, 18 Sep 2016 20:46:44 -0400 Subject: [PATCH] fixing a few uses of selector function --- bdsm.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 1.8.3.1