diff --git a/patch-control.sh b/patch-control.sh old mode 100644 new mode 100755 index 4079cf663a1cbe566fd51d824bc77011511ff432..820441f19bb46c86eaf424048b82d50a0ccddeca --- 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() {