Skip to content

Commit

Permalink
fix: add bin dir check before removing files
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulguptajss committed Aug 14, 2023
1 parent de3080b commit d6e5174
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ endif

clean: header ## Cleanup the project binary (bin) folders
@echo "Cleaning harvest files"
@if test -d bin; then ls -d ./bin/* | grep -v "asup" | xargs rm -f; fi
@if [ -d bin ]; then \
ls -d ./bin/* | grep -v "asup" | xargs rm -f; \
fi

test: ## run tests
@echo "Running tests"
Expand Down

0 comments on commit d6e5174

Please sign in to comment.