Skip to content

Commit

Permalink
add a check for the sage theme directory
Browse files Browse the repository at this point in the history
  • Loading branch information
jazzsequence committed Sep 22, 2023
1 parent 20e9cb1 commit 150670b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions private/scripts/helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,14 @@ function update_composer() {

# Finish up the Sage install process.
function clean_up() {
# List the app/ehemes directory.
echo "${yellow}Listing the themes directory.${normal}"
# If the previous output did not include $sagename, bail.
if [[ ! "$(ls -la web/app/themes)" == *"$sagename"* ]]; then
echo "${red}Theme not found. Exiting here.${normal}"
exit 1;
fi

# If the site is multisite, we'll need to enable the theme so we can activate it.
terminus wp -- "$sitename"."$siteenv" theme enable "$sagename"
# List the themes.
Expand Down

0 comments on commit 150670b

Please sign in to comment.