Problem/Motivation

When using the script (./scripts/create_subtheme.sh ) to create a subtheme it fails.
On Pantheon using integrated composer.

cp: cannot stat '../contrib/bootstrap_barrio/subtheme': No such file or directory
./scripts/create_subtheme.sh: line 22: cd: name_bootstrap_barrio: No such file or directory
mv: cannot stat '*bootstrap_barrio_subtheme.*': No such file or directory
mv: cannot stat 'config/*/*bootstrap_barrio_subtheme.*': No such file or directory
mv: cannot stat '_name_bootstrap_barrio.theme': No such file or directory
sed: can't read : No such file or directory
sed: can't read name_bootstrap_barrio.info.yml: No such file or directory

Steps to reproduce

Install new D9 Integrated Composer site on Pantheon.
Install Bootstrap Barrio via composer.
Go to theme and run the script ./scripts/create_subtheme.sh

Proposed resolution

Pantheon uses the directory 'themes/composer' for all composer installed themes.

I think this should work if we changed lines 21-23:

cd ../../custom
cp -r ../composer/bootstrap_barrio/subtheme $CUSTOM_BARRIO
cd $CUSTOM_BARRIO

to

cp -r subtheme ../../custom/$CUSTOM_BARRIO
cd ../../custom/$CUSTOM_BARRIO

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#3 3208673.patch1.25 KBridefree
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ridefree created an issue. See original summary.

ridefree’s picture

Title: Subtheme script fails on Pantheon Composer Environment » Subtheme script fails on Pantheon Integrated Composer Environment
ridefree’s picture

FileSize
1.25 KB

Here's my fix as a patch. It might not be that relevant to many currently, but the change should make it a little more agnostic the sub directory.

hatuhay’s picture

Status: Active » Fixed

  • hatuhay committed 7e5503e on 5.5.x authored by ridefree
    Issue #3208673 by ridefree: Subtheme script fails on Pantheon Integrated...

  • hatuhay committed ea7522b on 5.x authored by ridefree
    Issue #3208673 by ridefree: Subtheme script fails on Pantheon Integrated...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.