From 2491630f51270af62043fbfe76c928cd326879ee Mon Sep 17 00:00:00 2001 From: Rohit Yadav Date: Fri, 8 Aug 2014 15:52:07 +0200 Subject: [PATCH] git: don't let db-police hook fail for no changes in setup/db Signed-off-by: Rohit Yadav --- tools/git/db-police | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/git/db-police b/tools/git/db-police index c2fd8ce73b37..fd52ef7fcc00 100755 --- a/tools/git/db-police +++ b/tools/git/db-police @@ -42,7 +42,7 @@ check_changes() { alert_command="command -v festival && $(echo '$1' | festival --tts)" fi - echo "$changed_files" | grep --quiet "setup/db" && eval $alert_command + echo "$changed_files" | (grep --quiet "setup/db" && eval $alert_command) || true } check_changes "Alert, somebody changed CloudStack schemas"