echo " uri: 'http://localhost/${SITE_BASE_PATH}'" >> drush/drush.yml
fi
-pushd "$WEB_ROOT"
+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;
echo "in a split-core setup."
fi
-popd
+popd > /dev/null
[ -d "${PROFILE_DEST_DIR}" ] && { echo "Aborting, '${PROFILE_DEST_DIR}' already exists." 1>&2; exit 1; }
-pushd "$WEB_ROOT"
+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}');")"
--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;
fi
done
-popd
+popd > /dev/null
# 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
-popd
+popd > /dev/null
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"
+pushd "$DESTDIR" > /dev/null
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."
-popd
+popd > /dev/null