Skip to content

Commit

Permalink
[neutron-sync-agent] Only try updating confs when `git diff'
Browse files Browse the repository at this point in the history
return 1 as opposed to failing with other error codes (>1).
  • Loading branch information
eugeneia committed May 18, 2015
1 parent ae8b95c commit 0ecaef5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ while true; do
cd $NEUTRON_DIR
git fetch >/dev/null
git diff --quiet origin/master >/dev/null 2>&1
if [ $? != 0 -o $initial = true ]; then
if [ $? = 1 -o $initial = true ]; then
log "Generating new configuration"
git pull --rebase origin master >/dev/null 2>&1
git reflog expire --expire-unreachable=0 --all
Expand Down

0 comments on commit 0ecaef5

Please sign in to comment.