fate: fix generating references when sh=dash

Regression since 0b98f28c46

Signed-off-by: Nicolas Gaullier <nicolas.gaullier@cji.paris>
Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
Nicolas Gaullier 2024-03-12 13:00:26 +01:00 committed by Marton Balint
parent 51d303e20c
commit 275add9328
1 changed files with 1 additions and 1 deletions

View File

@ -672,7 +672,7 @@ else
fi
echo "${test}:${sig:-$err}:$cmpo:$erro" >$repfile
if test $err != 0 && test $gen != "no" && test "${ref#tests/data/}" == "$ref" ; then
if test $err != 0 && test $gen != "no" && test "${ref#tests/data/}" = "$ref" ; then
echo "GEN $ref"
cp -f "$outfile" "$ref"
err=$?