From e2621f40256bc34ebec87b733eae067666cce687 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Wed, 6 Mar 2013 04:10:13 -0600 Subject: [PATCH] use git diff for test. --- test/tput | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/tput b/test/tput index bf67fe3..d44e9c8 100755 --- a/test/tput +++ b/test/tput @@ -1,5 +1,11 @@ #!/bin/bash node test/tput.js "$@" | tee out -diff -u -s test/terminfo out | less -c -R +out=$(git diff --color=always --no-index test/terminfo out) rm out + +if test -n "$out"; then + echo "$out" | less -c -R +else + echo 'Files are identical.' +fi