Fix double quoting, suggested by shellcheck
[drupal-init-tools.git] / libexec / new.sh
index 385c141..2064c89 100755 (executable)
@@ -20,7 +20,7 @@ set -e
 
 usage() {
   cat <<EOF
-usage: drin $(basename $0 .sh) [-h|--help] <destdir>
+usage: drin $(basename "$0" .sh) [-h|--help] <destdir>
 
 Create a new Drupal project in the 'destdir' directory.
 
@@ -120,7 +120,7 @@ echo "Uncomment and customize the values in the bootstrap.conf file."
 # Add some basic access control to protect sensitive files like bootstrap.conf
 cat > .htaccess <<EOF
 Options -Indexes
-SetEnvIf Request_URI "/web/.*" access_granted
+SetEnvIf Request_URI "/web(/.*)?$" access_granted
 Order allow,deny
 Allow from env=access_granted
 EOF