Newer
Older
#!/bin/bash
#
# RunSetup Selector
#
# This script allow the shifter to select from a predefined list of run-setups.
#
# Author: Carmelo Pellegrino <carmelo.pellegrino@bo.infn.it>
#
function createList() {
local LIST
local file
for file in *.detectorfile; do
LIST=(${LIST[*]} "FALSE" ${file})
done
unset file
echo ${LIST[*]}
}
selected=`zenity --title "Run Setup Selector" \
--list \
--text "Select one of the following Run Setups:" \
--radiolist \
--column="Selection" \
--column="Run Setup file" \
$(createList ${folder})`