The output of pushd and popd can confuse drin users making them think
that the output is relevant to Drupal when instead the usage of pushd
and popd is just an implementation detail.
Silence the output to avoid the confusion.
echo " uri: 'http://localhost/${SITE_BASE_PATH}'" >> drush/drush.yml
fi
echo " uri: 'http://localhost/${SITE_BASE_PATH}'" >> drush/drush.yml
fi
+pushd "$WEB_ROOT" > /dev/null
# Update the install_profile setting if it's already there
if grep -q "^\\\$settings\['install_profile'\] =" sites/default/settings.php;
# Update the install_profile setting if it's already there
if grep -q "^\\\$settings\['install_profile'\] =" sites/default/settings.php;
echo "in a split-core setup."
fi
echo "in a split-core setup."
fi
[ -d "${PROFILE_DEST_DIR}" ] && { echo "Aborting, '${PROFILE_DEST_DIR}' already exists." 1>&2; exit 1; }
[ -d "${PROFILE_DEST_DIR}" ] && { echo "Aborting, '${PROFILE_DEST_DIR}' already exists." 1>&2; exit 1; }
+pushd "$WEB_ROOT" > /dev/null
CURRENT_PROFILE="$($DRUSH php-eval "echo drupal_get_profile();")"
CURRENT_PROFILE_PATH="$($DRUSH php-eval "echo drupal_get_path('profile', '${CURRENT_PROFILE}');")"
CURRENT_PROFILE="$($DRUSH php-eval "echo drupal_get_profile();")"
CURRENT_PROFILE_PATH="$($DRUSH php-eval "echo drupal_get_path('profile', '${CURRENT_PROFILE}');")"
--no-interaction
# Copy private code and data from the currently installed profile
--no-interaction
# Copy private code and data from the currently installed profile
-pushd "$CURRENT_PROFILE_PATH"
+pushd "$CURRENT_PROFILE_PATH" > /dev/null
find . -maxdepth 1 -type d ! -name "tests" -printf "%P\n" |
while read -r dir;
find . -maxdepth 1 -type d ! -name "tests" -printf "%P\n" |
while read -r dir;
# Basically do what's suggested in the "Configuration" section here:
# https://www.drupal.org/docs/8/creating-distributions/how-to-write-a-drupal-8-installation-profile
# Basically do what's suggested in the "Configuration" section here:
# https://www.drupal.org/docs/8/creating-distributions/how-to-write-a-drupal-8-installation-profile
echo "Check that the code of the created profile refers to the new profile name."
fi
echo "Check that the code of the created profile refers to the new profile name."
fi
echo "Creating a new Drupal project..."
composer create-project drupal-composer/drupal-project:8.x-dev@dev "$DESTDIR" --keep-vcs --stability dev --no-interaction
echo "Creating a new Drupal project..."
composer create-project drupal-composer/drupal-project:8.x-dev@dev "$DESTDIR" --keep-vcs --stability dev --no-interaction
+pushd "$DESTDIR" > /dev/null
git remote rename origin upstream
git checkout -b master
git remote rename origin upstream
git checkout -b master
echo "Double check the provided .htaccess file to make sure that access to"
echo "'$PWD' is restricted by the web server."
echo "Double check the provided .htaccess file to make sure that access to"
echo "'$PWD' is restricted by the web server."