Skip to content

Commit

Permalink
Changed path
Browse files Browse the repository at this point in the history
  • Loading branch information
sreichel committed Sep 21, 2024
1 parent fb4f26d commit 2d14358
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .ddev/commands/web/localdev
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
## Usage: localdev
## Example: ddev localdev <git-url>

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 "$@"

0 comments on commit 2d14358

Please sign in to comment.