From a507a9e5262fc5191e9c9329b8501593ef33ad27 Mon Sep 17 00:00:00 2001 From: Aaron Meihm Date: Sat, 5 Sep 2015 06:37:39 -0500 Subject: [PATCH] [minor] fix issue with unquoted wildcard in agent clean target --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c5b8d1fd..99c472ca 100644 --- a/Makefile +++ b/Makefile @@ -269,7 +269,9 @@ test-modules: $(GO) test mig.ninja/mig/modules/... clean-agent: - find bin/ -name mig-agent* -exec rm {} \; + if [ -d bin/ ]; then \ + find bin/ -name 'mig-agent*' -exec rm {} \;; \ + fi rm -rf packages rm -rf tmp