Skip to content
Snippets Groups Projects
Commit 5726176d authored by Carmelo Pellegrino's avatar Carmelo Pellegrino
Browse files

First commit

createList already working (for current directory only)
zenity list also working fine
parents
No related branches found
No related tags found
No related merge requests found
#!/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})`
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment