diff --git a/tests/reftests/admin-cache.test b/tests/reftests/admin-cache.test index 83fd11b7c83..af344519b90 100644 --- a/tests/reftests/admin-cache.test +++ b/tests/reftests/admin-cache.test @@ -260,8 +260,8 @@ amet : sha512 : exists ### regexp=$1 file=$2 -sed "$regexp" $file > $file.tmp -mv $file.tmp $file +sed "$regexp" "$file" > "$file.tmp" +mv "$file.tmp" "$file" ### sh sedi.sh '/"sha512=.*/d' packages/ipsum/ipsum.1/opam ### sh sedi.sh '/"sha256=.*/d' packages/ipsum/ipsum.1/opam ### sh sedi.sh '/"sha512=.*/d' packages/dolor/dolor.1/opam