Andrew Wasson opened issue #3: update to build.sh fails on MAC OS at Jean Valverde / Drupal 10+ Olivero sub theme

Andrew Wasson
2024-09-03T21:26:10Z

I've used this sub theme platform several times in the past couple of months. Fortunately I kept the original with the unmodified build.sh script so I was able to build it but the updated build.sh script would not work.

I'm not sure where the issue is but the updated script can't find my sub theme and errors out. If from within the sub-theme I run the command scripts/build.sh olivero_sub_theme The error is as follows:

[ERROR]\e[0m Sub theme missing, did you create/copy this subtheme in '/Volumes/Big Macintosh HD/httpd/mysite/web/themes/custom/Big Macintosh HD olivero_sub_theme'?

My sub theme is in: /Volumes/Big Macintosh HD/httpd/mysite/web/themes/custom/olivero_sub_theme

It might be having trouble because the hard drive that my server resides in has white space in the name but ti seems to concatenate the name of my hard drive with the name of the sub theme.

To temporarily resolve the issue, I have put the old build.sh script in the scripts directory and ran sudo scripts/build.sh olivero_sub_theme; that works just fine.