Skip to content

Commit e7cccf7

Browse files
committed
Fix
1 parent 908379f commit e7cccf7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.ddev/commands/web/localdev

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ if [ ! -d "localdev/" ]
88
then
99
mkdir "localdev/"
1010
echo "Directory created."
11-
php vendor/bin/composer config repositories.local '{"type": "path", "url": "./localdev/*", "canonical": "false"}'
11+
fi
12+
13+
if ! grep -q './localdev/*' composer.json; then
14+
php vendor/bin/composer config repositories.local '{"type": "path", "url": "./localdev/*", "canonical": false}'
15+
echo "Patched composer.json."
1216
fi
1317

1418
cd "localdev/"

0 commit comments

Comments
 (0)