From 293e91564b20dc2971e47c79e727f7db2349024c Mon Sep 17 00:00:00 2001 From: Brezak Date: Wed, 17 Jul 2024 02:49:07 +0900 Subject: [PATCH] Fix the dev docs robots.txt containing a literal \n instead of a newline (#14347) # Objective The robots.txt file for the [dev docs](https://dev-docs.bevyengine.org) looks like this `User-Agent: *\nDisallow: /` It should look like this ``` User-Agent: * Disallow: / ``` ## Solution Use [`ANSI-C`](https://www.gnu.org/software/bash/manual/bash.html#ANSI_002dC-Quoting) quoting to properly handle the `\n` ## Testing - [x] Run the fixed echo command in local terminal. - [ ] Wait for the dev doces to deploy and observe if the mistake has been fixed --- .github/workflows/docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 49e6b2cd49..359b57c651 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -69,7 +69,7 @@ jobs: run: | echo "" > target/doc/index.html echo "dev-docs.bevyengine.org" > target/doc/CNAME - echo "User-Agent: *\nDisallow: /" > target/doc/robots.txt + echo $'User-Agent: *\nDisallow: /' > target/doc/robots.txt rm target/doc/.lock - name: Upload site artifact