aboutsummaryrefslogtreecommitdiffstats
path: root/tests/filters/dump.sh
diff options
context:
space:
mode:
authorLukas Fleischer <cgit@cryptocrack.de>2014-01-15 23:11:19 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2014-01-16 00:53:18 +0100
commit3741254a6989b2837cd8d20480f152f0096bcb9a (patch)
tree5997134d4aaff3ccade061c8cce6de85cbf3ed88 /tests/filters/dump.sh
parentparsing.c: Remove leading space from committer (diff)
downloadcgit-3741254a6989b2837cd8d20480f152f0096bcb9a.tar.xz
cgit-3741254a6989b2837cd8d20480f152f0096bcb9a.zip
t0111: Additions and fixes
* Rename the capitalize-* filters to dump.* since they also dump the arguments. * Add full argument validation to the email filters. Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de>
Diffstat (limited to 'tests/filters/dump.sh')
-rwxr-xr-xtests/filters/dump.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/filters/dump.sh b/tests/filters/dump.sh
new file mode 100755
index 0000000..da6f7a1
--- /dev/null
+++ b/tests/filters/dump.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+[ "$#" -gt 0 ] && printf "%s " "$*"
+tr '[:lower:]' '[:upper:]'