Skip to content

Commit

Permalink
Only pushd and popd in wpparent layout
Browse files Browse the repository at this point in the history
  • Loading branch information
tlovett1 committed Aug 20, 2024
1 parent 47aef83 commit 99fafc7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/toolkit/scripts/project/bash/scripts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function build:main {

# detect if this is a wpparent layout or not

if [ -d wordpress/wp-content ]; then
if [ ${PROJECT_TYPE} == "wpparent" ]; then
pushd wordpress/wp-content
elif [ -d plugins ]; then
pushd . # go no where, we are already in the right spot
Expand Down Expand Up @@ -115,7 +115,10 @@ function build:main {

npm run build
fi
popd

if [ ${PROJECT_TYPE} == "wpparent" ]; then
popd
fi
}

function build:local {
Expand Down

0 comments on commit 99fafc7

Please sign in to comment.