From e34444416838b919289a1f0d35cc915bebcb06a1 Mon Sep 17 00:00:00 2001
From: Eric Bremner <ebremner@uwaterloo.ca>
Date: Fri, 20 May 2022 11:41:30 -0400
Subject: [PATCH] ISTWCMS-5509: updating build ohana script to remove all css
 but the min on non theme developement

---
 build_ohana.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/build_ohana.sh b/build_ohana.sh
index 1cc96f23..2ee70823 100755
--- a/build_ohana.sh
+++ b/build_ohana.sh
@@ -76,9 +76,9 @@ if [[ $build_option != 1 && $build_option != 3 ]]; then
   echo "Setting up css/js and removing ohana ..."
   mv "$DRUPAL_PATH"/web/profiles/uw_base_profile/modules/custom/uw_wcms_ohana/ohana/dist "$DRUPAL_PATH"/web/profiles/uw_base_profile/modules/custom/uw_wcms_ohana/
   cd "$DRUPAL_PATH"/web/profiles/uw_base_profile/modules/custom/uw_wcms_ohana/ohana/dist/css
-  ls | grep -v all.min.css | parallel rm
+  rm !("all.min.css")
   cd "$DRUPAL_PATH"/web/profiles/uw_base_profile/modules/custom/uw_wcms_ohana/ohana/dist/js
-  ls | grep -v all.min.js | parallel rm
+  rm !("all.min.js")
   cd "$DRUPAL_PATH"/web/profiles/uw_base_profile/modules/custom/uw_wcms_ohana/
   rm -rf ohana
   echo "**************************************************************************************"
-- 
GitLab