From 4a5853dbf90cce152d586c7518c1538c0e649346 Mon Sep 17 00:00:00 2001
From: Eric Bremner <ebremner@uwaterloo.ca>
Date: Tue, 14 Jun 2022 14:17:55 -0400
Subject: [PATCH] ISTWCMS-5637: updating build ohana to only copy fonts if
 there are any

---
 build_ohana.sh | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/build_ohana.sh b/build_ohana.sh
index 37de4323..e785f742 100755
--- a/build_ohana.sh
+++ b/build_ohana.sh
@@ -59,11 +59,13 @@ ln -s ../../src/patterns src/patterns
 echo "**************************************************************************************"
 echo "Done setting up theming."
 
-echo "**************************************************************************************"
-echo "Copying fonts ..."
-cp "$DRUPAL_PATH"/web/config/fonts/* dist/fonts
-echo "**************************************************************************************"
-echo "Done copying fonts."
+if [[ -d "$DRUPAL_PATH"/web/config/fonts ]]: then
+  echo "**************************************************************************************"
+  echo "Copying fonts ..."
+  cp "$DRUPAL_PATH"/web/config/fonts/* dist/fonts
+  echo "**************************************************************************************"
+  echo "Done copying fonts."
+fi
 
 echo "**************************************************************************************"
 echo "Running npm install ..."
-- 
GitLab