check-code: fix check for trailing whitespace on sh command lines
The $ has been without necessary escaping since introduced in c7d23b4ca4ba.
[ original upstream message ]
--- a/tests/test-keyword.t Tue Jul 03 18:02:07 2012 +0200
+++ b/tests/test-keyword.t Wed Aug 08 18:10:16 2012 +0200
@@ -998,7 +998,7 @@
$ echo '$Id$' > m
$ hg add m
- $ hg commit -m 4kw
+ $ hg commit -m 4kw
$ echo foo >> m
$ hg commit -m 5foo