diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2016-05-10 09:38:47 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2016-05-10 09:38:47 +0100 |
| commit | 39762f0cf02e4517d5908bc3ebecf87b5cd8399e (patch) | |
| tree | ddf32c7ea0de83b9c29d21964658ca053d27874f | |
| parent | abac6a9436b265d824d91d6232d5d09063de6aa0 (diff) | |
preserve diff leading whitespaces when displayin them in the test runner
| -rwxr-xr-x | test/run | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -148,7 +148,7 @@ colorize() { } show_diff() { - diff -u $1 $2 | while read -r line; do + diff -u $1 $2 | while IFS='' read -r line; do first_character=$(echo "$line" | cut -b 1) case $first_character in +) color=green ;; |
