From a6ca48926909988419eff8bc8576824e4408d2b3 Mon Sep 17 00:00:00 2001 From: techknowlogick Date: Thu, 29 Jun 2023 18:55:46 +0000 Subject: [PATCH] Update loop_docs.sh --- loop_docs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loop_docs.sh b/loop_docs.sh index 9afbe9c9..c3937029 100755 --- a/loop_docs.sh +++ b/loop_docs.sh @@ -69,8 +69,8 @@ fi for file in `find ./"$docs_dir" -name "*.md"`; do # hide hugo toc SED_INPLACE 's/{{< toc >}}//' $file - SED_INPLACE 's/dl.gitea.com\/gitea\/{{< version >}}/dl.gitea.com\/gitea\/main/g' $file if [ "$version" == "lastest" ]; then + SED_INPLACE 's/dl.gitea.com\/gitea\/{{< version >}}/dl.gitea.com\/gitea\/main/g' $file SED_INPLACE 's/gitea\/gitea\:{{< version >}}/gitea\/gitea\:nightly/g' $file fi SED_INPLACE "s/{{< version >}}/$version/g" $file