From a753dcf4b54fdb05c8b99921bf69ca2f77ac6925 Mon Sep 17 00:00:00 2001
From: Sylvester Joosten <sjoosten@anl.gov>
Date: Wed, 8 Sep 2021 23:53:52 +0000
Subject: [PATCH] Handle new funny GBD profile.d files

---
 containers/jug/eic-env.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/containers/jug/eic-env.sh b/containers/jug/eic-env.sh
index f320442cb..15a14c41b 100755
--- a/containers/jug/eic-env.sh
+++ b/containers/jug/eic-env.sh
@@ -1,7 +1,9 @@
 #!/bin/bash
 
 for i in /etc/profile.d/*.sh; do
-  . $i
+  if [ -r $i ]; then
+    . $i
+  fi
 done
 
 export PS1='eic-shell> \[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
-- 
GitLab