bootstrap.sh: don't force RewriteBase, it's not generally needed
Silence pushd and popd output 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.
bootstrap.sh: set the core src-prefix and dst-prefix also for git format-patch
bootstrap.sh: fix setting the --uri option for Drush 9 Set the --uri option in Drush 9. This is basically a port of commit 9d37dad (bootstrap.sh: set the drush --uri option, 2018-03-16) for Drush 9.
bootstrap.sh: set the drush --uri option
bootstrap.sh: fix sites subdir when specifying options.uri Drush 9 tries too hard to get the sites subdir from the options.uri setting. This is wrong IMHO because options.uri is something relative to the *web* root and can be subject to web server aliases and whatnot, while sites-dir is something relative to the local filesystem; mixing the two is counter-intuitive, TO be on the safe side, pass the --sites-subdir option explicitly to "drush site-install", to avoid a possible error when options.uri is something valid but not expected by drush, like http://localhost/~user/drupal/web Fix the following error emitted in such cases: [error] Could not determine target sites directory for site to install. Use --sites-subdir to specify.
bootstrap.sh: fix wording in a couple of comments
bootstrap.sh: don't fail hard if the overwriting profile is not there yet
bootstrap.sh: clarify what the --overwrite-profile option does
bootstrap.sh: stop using the deprecated drush "pm-info" command This fixes the following drush error: The pm-info command was deprecated. Please see `drush pm:list` and `composer show` While at it also use an exact pattern for the module name, this avoids matching against other modules which may contain the word 'locale' in their names.
bootstrap.sh: support both password and unix_socket access to the database
bootstrap.sh: improve the informational message about 'git core-diff'
bootstrap.sh: use the imperative in comments
bootstrap.sh: always update RewriteBase Cover the case of bootstrapping a site a second time without cleaning the web/ directory when the user changed the value of SITE_BASE_PATH in bootstrap.conf: be sure to propagated the change to the .htaccess file.
bootstrap.sh: add the "--overwrite-profile" to the help text And add the option to the man page too.
Check that the "bootstrap" and "clean" subcommands are run in the project dir
bootstrap.sh: rename SITE_LOCAL_PATH to WEB_ROOT for consistency Use the same name for all subcommands.
Use the shell logical operators, avoid the non-portable -o and -a in "test"
bootstrap.sh: use "grep -E" instead of "egrep", suggested by shellcheck
Use "read -r" to get the verbatim input, suggested by shellcheck