1
0
mirror of https://github.com/chubin/cheat.sh.git synced 2026-06-20 13:16:44 +02:00

Pipe colored diffs

This commit is contained in:
Anatoli Babenia
2020-07-30 23:17:01 +03:00
parent a0d344c38d
commit e0f84e8b3a
+1 -1
View File
@@ -82,7 +82,7 @@ while read -r number test_line; do
eval "curl -s $CHTSH_URL/$test_line" > "$TMP"
fi
if ! diff -u3 results/"$number" "$TMP" > "$TMP2"; then
if ! diff -u3 --color=always results/"$number" "$TMP" > "$TMP2"; then
if [ "$show_details" = YES ]; then
cat "$TMP2"
fi