mirror of
https://github.com/hashicorp/packer.git
synced 2026-10-07 23:20:24 -04:00
Don't allow a dirty Git tree to fail the make command.
This commit is contained in:
+1
-1
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user