Skip to content

Commit

Permalink
Clean up indentation in control_rancid.in
Browse files Browse the repository at this point in the history
  • Loading branch information
samdoran committed Mar 26, 2014
1 parent b163e23 commit 2f9d80c
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions bin/control_rancid.in
Original file line number Diff line number Diff line change
Expand Up @@ -933,23 +933,23 @@ case $RCSSYS in
done
git commit -m "$message"
if [ $? -eq 0 ]; then
# only generate a diff if the commit was successful
if [ $HTMLMAILS == YES ]; then
git diff --patch-with-stat --quiet HEAD^ HEAD -- .
if [ $? -eq 1 ] ; then
# only process HTML mail if there really is a difference
git diff --color --patch-with-stat HEAD^ HEAD -- . | ansi2html >$TMP.diff
fi
# only generate a diff if the commit was successful
if [ $HTMLMAILS == YES ]; then
git diff --patch-with-stat --quiet HEAD^ HEAD -- .
if [ $? -eq 1 ] ; then
# only process HTML mail if there really is a difference
git diff --color --patch-with-stat HEAD^ HEAD -- . | ansi2html >$TMP.diff
fi
else
git diff --patch-with-stat HEAD^ HEAD -- . >$TMP.diff
fi
if [ $RCSSYS = "git-remote" ] ; then
# only push to remotes if commit was successful
for repo in $(git remote) ; do
git push ${repo}
done
fi
fi
if [ $RCSSYS = "git-remote" ] ; then
# only push to remotes if commit was successful
for repo in $(git remote) ; do
git push ${repo}
done
fi
fi
) 200>$BASEDIR/.lockfile
;;
esac
Expand Down

0 comments on commit 2f9d80c

Please sign in to comment.