]> git.cameronkatri.com Git - cgit.git/blobdiff - tests/t0010-validate-html.sh
ui-blob: set CSP just in case
[cgit.git] / tests / t0010-validate-html.sh
index 5bd0a252f18ad69cc1ff9947f56c5be3f419f8a8..ca08d69d142b216d14ab1c7773c9e18de2052740 100755 (executable)
@@ -8,8 +8,8 @@ test_url()
 {
        tidy_opt="-eq"
        test -z "$NO_TIDY_WARNINGS" || tidy_opt+=" --show-warnings no"
-       cgit_url "$1" >tidy-$test_count || return
-       sed -ie "1,4d" tidy-$test_count || return
+       cgit_url "$1" >tidy-$test_count.tmp || return
+       sed -e "1,4d" tidy-$test_count.tmp >tidy-$test_count || return
        "$tidy" $tidy_opt tidy-$test_count
        rc=$?