From 6a79d797d2411b3090566de8089d1f6967420c5d Mon Sep 17 00:00:00 2001 From: Steven Merrill Date: Tue, 9 Jul 2013 01:24:19 -0400 Subject: [PATCH] Don't allow a dirty Git tree to fail the make command. --- scripts/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build.sh b/scripts/build.sh index 439231c1f..9877ffa38 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -18,7 +18,7 @@ cd $DIR # Get the git commit GIT_COMMIT=$(git rev-parse --short HEAD) -GIT_DIRTY=$(test -n "`git status --porcelain`" && echo "+CHANGES") +GIT_DIRTY=$(test -n "`git status --porcelain`" && echo "+CHANGES" || true) # Compile the main Packer app echo -e "${OK_COLOR}--> Compiling Packer${NO_COLOR}"