From c5c43cf55e02db685df587ee73f9bba54d622a78 Mon Sep 17 00:00:00 2001
From: Wouter Deconinck <wouter.deconinck@umanitoba.ca>
Date: Wed, 8 Sep 2021 23:23:49 +0000
Subject: [PATCH] Only source readables

---
 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