We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc4b29c commit 80a02c0Copy full SHA for 80a02c0
1 file changed
tests.sh
@@ -38,6 +38,10 @@ my_diff() {
38
# output
39
# - Fix the CRLF line endings in the files on disk, because git adds them to
40
# text files.
41
+ if [ "${UPDATE_OUT}" == "1" ]; then
42
+ # echo "Copying $file_b to $file_a... in $(pwd)"
43
+ cp $file_b $file_a
44
+ fi
45
if [ ! -f $1 ]; then
46
echo "File $1 is missing?!"
47
return 1
@@ -47,9 +51,6 @@ my_diff() {
51
else
48
52
diff <(cat $file_a | tr -d '\r') <(cat $file_b | sed 's~\\\\~/~g')
49
53
result=$?
50
- if [ "${UPDATE_OUT}" == "1" ]; then
- cp $file_b $file_a
- fi
54
return $result
55
fi
56
}
0 commit comments