aboutsummaryrefslogtreecommitdiff
path: root/tests/filters/dump.sh
diff options
context:
space:
mode:
authorLukas Fleischer <cgit@cryptocrack.de>2014-01-15 22:11:19 +0000
committerJason A. Donenfeld <Jason@zx2c4.com>2014-01-15 23:53:18 +0000
commit3741254a6989b2837cd8d20480f152f0096bcb9a (patch)
tree5997134d4aaff3ccade061c8cce6de85cbf3ed88 /tests/filters/dump.sh
parent2a7dd4bf67edeff2c6c4f6d6d39d2d7f954d978a (diff)
downloadcgit-3741254a6989b2837cd8d20480f152f0096bcb9a.tar
cgit-3741254a6989b2837cd8d20480f152f0096bcb9a.tar.gz
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:]'