Skip to content

Commit a7e60d8

Browse files
committed
Merge pull request #71 from loadsys/b/delete-failure
Swaps Delete Order for Symlinks and Real Files
2 parents 6447666 + 4aa513b commit a7e60d8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

composer-reinstall

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ echo "## Found composer at: ${COMPOSER}"
5454
COMPOSER_VENDOR_DIR="$($COMPOSER config --absolute vendor-dir)"
5555
COMPOSER_BIN_DIR="$($COMPOSER config --absolute bin-dir)"
5656

57-
# Purge the vendor folder entirely and just symlinks from the bin folder.
58-
echo "## Deleting vendor-dir: ${COMPOSER_VENDOR_DIR}"
59-
rm -rf "$COMPOSER_VENDOR_DIR"
57+
# Purge the symlinks from the bin folder first then clear the vendor folder entirely.
6058
echo "## Removing bin-dir symlinks from: ${COMPOSER_BIN_DIR}"
6159
find "$COMPOSER_BIN_DIR" -type l -delete;
60+
echo "## Deleting vendor-dir: ${COMPOSER_VENDOR_DIR}"
61+
rm -rf "$COMPOSER_VENDOR_DIR"
6262

6363
# Execute `composer install`
6464
echo "## Running install."

0 commit comments

Comments
 (0)