Check that the "bootstrap" and "clean" subcommands are run in the project dir
[drupal-init-tools.git] / libexec / bootstrap.sh
index 6d26c2e..422fafe 100755 (executable)
@@ -52,6 +52,8 @@ do
   shift
 done
 
+[ -f "bootstrap.conf" ] || { echo "Aborting, run this command from the Drupal project directory." 1>&2; exit 1; }
+
 # shellcheck disable=SC1091
 . bootstrap.conf