Skip to content

Commit 4e20936

Browse files
authored
Use rm -rf to delete composer lock file so it wont error if missing (#71)
1 parent 0b5d1ef commit 4e20936

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

commands/web/poser

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@
1010
export COMPOSER=composer.contrib.json
1111
.ddev/commands/web/expand-composer-json "$DDEV_PROJECT_NAME"
1212
composer install
13-
rm composer.contrib.json composer.contrib.lock
13+
# The -f flag suppresses errors if lock file does not exist.
14+
rm -f composer.contrib.json composer.contrib.lock
1415
touch $DDEV_DOCROOT/core/.env

0 commit comments

Comments
 (0)