@@ -1,10 +1,6 @@
11#!/bin/sh
22
3−# use th is to strip out ANSI codes, if you want to pipe
3+# use to strip out ANSI codes, if you want to pipe
44# outputof 'cabal test' to a file.
55
6−if which -s gsed; then
7− gsed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g"
8−else
9− gsed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g"
10−fi
6+sed -e 's/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g'