diff --git a/.ddev/commands/web/localdev b/.ddev/commands/web/localdev index ba67d8ce1da..6d67d3ac980 100755 --- a/.ddev/commands/web/localdev +++ b/.ddev/commands/web/localdev @@ -4,16 +4,16 @@ ## Usage: localdev ## Example: ddev localdev -if [ ! -d "localdev/" ] +if [ ! -d ".localdev/" ] then - mkdir "localdev/" + mkdir ".localdev/" echo "Directory created." fi -if ! grep -q './localdev/*' composer.json; then - php vendor/bin/composer config repositories.local '{"type": "path", "url": "./localdev/*", "canonical": false}' +if ! grep -q "./.localdev/*" composer.json; then + php vendor/bin/composer config repositories.local '{"type": "path", "url": "./.localdev/*", "canonical": false}' echo "Patched composer.json." fi -cd "localdev/" +cd ".localdev/" || exit git clone "$@"