Skip to content

Commit

Permalink
1.1.1 - reapply fix for "no such file or directory" issue
Browse files Browse the repository at this point in the history
  • Loading branch information
bntzio committed May 9, 2017
1 parent ded5c41 commit c4993fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wipe-modules",
"version": "1.1.0",
"version": "1.1.1",
"description": "A little agent that removes the node_modules folder of non-active projects",
"license": "MIT",
"repository": "bntzio/wipe-modules",
Expand Down
3 changes: 3 additions & 0 deletions wipe-modules.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ wipe() {
dir="$1" # now dir is the 1st parameter ($1)
dir="${dir%/}" # strip trailing slash
dir="${dir##*/}" # strip path and leading slash
if [ "$dir" == "." ]; then
continue
fi
cd "$dir"
if [ $(find . -maxdepth 1 -type d -name 'node_modules') ]; then
# if $dry is not --dry (or -D) then just print the name of the folder that
Expand Down

0 comments on commit c4993fc

Please sign in to comment.