equal
deleted
inserted
replaced
49 echo -e "\nmanifest hash: $MANIFEST" >> "$HGTMP/msg" |
49 echo -e "\nmanifest hash: $MANIFEST" >> "$HGTMP/msg" |
50 fi |
50 fi |
51 grep -vE '^(HG: manifest hash .*)?$' "$1" >> "$HGTMP/msg" |
51 grep -vE '^(HG: manifest hash .*)?$' "$1" >> "$HGTMP/msg" |
52 |
52 |
53 CHECKSUM=`md5sum "$HGTMP/msg"` |
53 CHECKSUM=`md5sum "$HGTMP/msg"` |
54 $EDITOR "$HGTMP/msg" "$HGTMP/diff" || exit $? |
54 if [ -s "$HGTMP/diff" ]; then |
|
55 $EDITOR "$HGTMP/msg" "$HGTMP/diff" || exit $? |
|
56 else |
|
57 $EDITOR "$HGTMP/msg" || exit $? |
|
58 fi |
55 echo "$CHECKSUM" | md5sum -c >/dev/null 2>&1 && exit 13 |
59 echo "$CHECKSUM" | md5sum -c >/dev/null 2>&1 && exit 13 |
56 |
60 |
57 if [ "$SIGN" == "1" ]; then |
61 if [ "$SIGN" == "1" ]; then |
58 { |
62 { |
59 head -n 1 "$HGTMP/msg" |
63 head -n 1 "$HGTMP/msg" |