Skip to content

Commit

Permalink
git: don't let db-police hook fail for no changes in setup/db
Browse files Browse the repository at this point in the history
Signed-off-by: Rohit Yadav <[email protected]>
  • Loading branch information
rohityadavcloud committed Aug 8, 2014
1 parent a0006a6 commit 2491630
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/git/db-police
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 2491630

Please sign in to comment.