-
Notifications
You must be signed in to change notification settings - Fork 29.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove node_modules if folder is empty
- Loading branch information
Showing
1 changed file
with
4 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rm -rf
makes me slightly nervous. Wouldrmdir $DIR_PREFIX/lib/node_modules
work? Also, shouldn't $DIR_PREFIX be quoted in case the path contains spaces?