From 9be00b6fb8026e9d7bf8ca4f2aaa7934441c60b7 Mon Sep 17 00:00:00 2001
From: Joe Garcia <joe.garcia@ssec.wisc.edu>
Date: Sun, 14 Mar 2021 22:54:40 +0000
Subject: [PATCH] fix egg permissions command

---
 ShellB3/shallbethree.sh | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/ShellB3/shallbethree.sh b/ShellB3/shallbethree.sh
index 3f5549c9..1e6a7527 100755
--- a/ShellB3/shallbethree.sh
+++ b/ShellB3/shallbethree.sh
@@ -8565,7 +8565,12 @@ SCRIPT
 mk_dateutil() {
   resume_tracker && return 0
   _setup_build_install python-dateutil src/optional/python-dateutil-${DATEUTILVER}.tar.gz python-dateutil-${DATEUTILVER}
-  find *ib* -name "python_dateutil-${DATEUTILVER}*.egg" | xargs chmod -R +r
+  for f in $( find *ib* -name "python_dateutil-${DATEUTILVER}*.egg" ) ; do
+    if [ -e "$f" ] ; then
+      chmod -R +r "$f"
+    fi
+  done
+  return 0
 }
 
 mk_pytz() {
-- 
GitLab