changeset 663:562404de61fb

hgeditor: Fix some parameters to commands # HG changeset patch # User Radoslaw "AstralStorm" Szkodzinski <astralstorm@gorzow.mm.pl> # Node ID 341d27f865903223f8bf12382e3596167228a1c1 # Parent 5c5d1484b51a53918575a199ab8985160f0ce2d7 hgeditor: Fix some parameters to commands
author Radoslaw "AstralStorm" Szkodzinski <astralstorm@gorzow.mm.pl>
date Sun, 10 Jul 2005 16:00:24 -0800
parents b55a78595ef6
children e1fbc1982372
files hgeditor
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/hgeditor	Sun Jul 10 16:00:17 2005 -0800
+++ b/hgeditor	Sun Jul 10 16:00:24 2005 -0800
@@ -36,11 +36,11 @@
 
     CHECKSUM=`md5sum "$T1"`
     $EDITOR "$T1" "$T2" || cleanup_exit $?
-    echo "$CHECKSUM" | md5sum -c 2>/dev/null && cleanup_exit 0
+    echo "$CHECKSUM" | md5sum -c --status && cleanup_exit 13
     {
-        head -1 "$T1"
+        head -n 1 "$T1"
         echo
-        grep -v "^HG:" "$T1" | gpg -a -u "${HGUSER:-$EMAIL}" --clearsign
+        grep -v "^HG:" "$T1" | gpg -t -a -u "${HGUSER:-$EMAIL}" --clearsign
     } > "$T2" && mv "$T2" "$1"
     cleanup_exit $?
 fi