Skip to content
Snippets Groups Projects
Commit 4ee9382c authored by Pete Jemian's avatar Pete Jemian
Browse files

add paths only if they exist,

parent a8f16b2e
No related branches found
No related tags found
No related merge requests found
...@@ -21,14 +21,23 @@ function addModule ...@@ -21,14 +21,23 @@ function addModule
# module_path is the path defined for that symbol in the RELEASE file # module_path is the path defined for that symbol in the RELEASE file
module='$'$1 module='$'$1
module_path=`eval echo $module` module_path=`eval echo $module`
if [ "" == "${QTDMDP}" ]; then
QTDMDP=. if [ "" != "${module}" ]; then
fi # module is required
if [ "" != "${module_path}" ]; then addition=${module_path}
if [ "" != "$2" ]; then if [ "" != "$2" ]; then
module_path=${module_path}/$2 # optional subdirectory path
fi addition+=/$2
QTDMDP=${QTDMDP}:${module_path} fi
if [ -d "${addition}" ]; then
# proceed ONLY if new addition path exists
# Then, can define paths to all area detectors specific screens
if [ "" == "${QTDMDP}" ]; then
# no existing path defined, start here
QTDMDP=.
fi
QTDMDP+=:${addition}
fi
fi fi
} }
......
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