From 3bf76ca0cdcd9040c2f48dd3b0f9668fd3997353 Mon Sep 17 00:00:00 2001 From: Carmelo Pellegrino <carmelo.pellegrino@gmail.com> Date: Mon, 25 May 2015 15:25:43 +0200 Subject: [PATCH] reading the path of pc.cfg file from shell var --- patch-control.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/patch-control.sh b/patch-control.sh index adac644..fa02b9d 100755 --- a/patch-control.sh +++ b/patch-control.sh @@ -11,7 +11,8 @@ # The configuration of this very script is perfomed via shell variables. # Here the list of parameters is reported # -# DM_EXE_DIR -> the absolute path to the DetectorControl.exe program +# DM_EXE_DIR -> the absolute path to the DetectorControl.exe program +# PC_CONF_DIR -> the absolute path of the pc.cfg configuration file function put_lock() { touch /tmp/pc.lock @@ -48,7 +49,7 @@ function get_run_setup_file() { while IFS=';' read -ra line; do LIST+=("FALSE" "${line[@]}") - done < pc.cfg + done < ${PC_CONF_DIR}/pc.cfg zenity --title "Run Setup Selector" \ --list \ -- GitLab