Browse Source

Improved `sde ci` to only show Changes and Status if a change was detected

misl/sde-wrapper
Alejandro Mery 17 years ago
parent
commit
f57281e27c
1 changed files with 7 additions and 6 deletions
  1. +7
    -6
      bin/sde-commit

+ 7
- 6
bin/sde-commit

@ -132,13 +132,14 @@ else
echo_abort "$root: unknown version control system."
fi
echo_msg "Changes:"
cat $tmpfile.diff
if [ -s $tmpfile.diff -o -s $tmpfile.status ]; then
echo_msg "Status:"
cat $tmpfile.status
echo_msg "Changes:"
cat $tmpfile.diff
echo_msg "Status:"
cat $tmpfile.status
if [ -s $tmpfile.diff ] || grep -q '^A' $tmpfile.status; then
quit=0
until [ $quit -ne 0 ]; do
@ -167,7 +168,7 @@ if [ -s $tmpfile.diff ] || grep -q '^A' $tmpfile.status; then
esac
done
else
echo_warning "No changes detected at:$locations"
echo_warning "No changes detected."
fi
rm -f $tmpfile.status $tmpfile.diff

Loading…
Cancel
Save