]> diplodocus.org Git - nmh/blobdiff - test/oauth/common.sh
Wrapped code block of conditional statement with {}, so that the
[nmh] / test / oauth / common.sh
index 3f3dc598d26abaa916f948b482ad45bb91a3a7f3..ab0bad5373c0e9aa39583145004afc2d8c8f9b05 100644 (file)
@@ -180,7 +180,7 @@ check_creds() {
     # it against our "correct" output.
     f="${MHTMPDIR}/oauth-test"
 
-    sed 's/^expire:.*/expire:/' "$f" > "$f".notime
+    sed 's/^\(expire.*:\).*/\1/' "$f" > "$f".notime
     check "$f".notime "${MHTMPDIR}/$$.expected-creds"
     rm "$f"
 }