From 38fca227875883c1a26da34a7a69e79826f9eeb2 Mon Sep 17 00:00:00 2001
From: Carmelo Pellegrino <carmelo.pellegrino@gmail.com>
Date: Thu, 21 May 2015 18:37:44 +0200
Subject: [PATCH] useless echo removed

---
 patch-control.sh | 28 +++++++++++++---------------
 1 file changed, 13 insertions(+), 15 deletions(-)
 mode change 100644 => 100755 patch-control.sh

diff --git a/patch-control.sh b/patch-control.sh
old mode 100644
new mode 100755
index 4079cf6..820441f
--- a/patch-control.sh
+++ b/patch-control.sh
@@ -38,26 +38,24 @@ function on_exit() {
 }
 
 function get_run_setup_file() {
-  local LIST
+  local LIST=()
   local line
 
   while IFS=';' read -ra line; do
-    if [ ${#line[@]} != 0 ]; then
-      LIST+=("FALSE" "${line[@]}")
-    fi
+    LIST+=("FALSE" "${line[@]}")
   done < pc.cfg
 
-  echo $(zenity --title "Run Setup Selector" \
-                   --list \
-                   --text "Select one of the following Run Setups:" \
-                   --radiolist \
-                   --width=600 \
-                   --height=400 \
-                   --column="Selection" \
-                   --column="Run Setup file" \
-                   --column="Run Setup name" \
-                   --column="Description" \
-                   --hide-column=2 "${LIST[@]}")
+  zenity --title "Run Setup Selector" \
+         --list \
+         --text "Select one of the following Run Setups:" \
+         --radiolist \
+         --width=600 \
+         --height=400 \
+         --column="Selection" \
+         --column="Run Setup file" \
+         --column="Run Setup name" \
+         --column="Description" \
+         --hide-column=2 "${LIST[@]}"
 }
 
 function dm_driver() {
-- 
GitLab