From 0323f0a4654836cb5fc3c2d94b8f64bb6b713d68 Mon Sep 17 00:00:00 2001 From: dohnarms <dohnarms@anl.gov> Date: Wed, 31 Aug 2011 16:11:32 +0000 Subject: [PATCH] added bash start_epics fix to not include nonexistent directories --- start_epics_xxx.bash | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/start_epics_xxx.bash b/start_epics_xxx.bash index 2449266..a774a80 100755 --- a/start_epics_xxx.bash +++ b/start_epics_xxx.bash @@ -11,7 +11,10 @@ eval $output # EDP is temporary EPICS_DISPLAY_PATH # function append_EDP { # note: in bash, macros are not expanded in aliases - EDP=${EDP}:$@ + if [ -d $1 ] # this will keep keep out nonexistent directories + then + EDP=${EDP}:$1 + fi } EDP=. append_EDP ${EPICS_APP_ADL_DIR} -- GitLab