Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAchilleas Pipinellis <axil@gitlab.com>2018-02-15 16:21:19 +0300
committerAchilleas Pipinellis <axil@gitlab.com>2018-02-15 16:21:19 +0300
commit036e1ad5a74c120b29703b466a93e4b5e4fd742b (patch)
treea3ad3318d65731410c5053ea2a6ddda5bd4b04df /scripts
parentbfb4518f49d4f4e845a0ff2ad7f3b1650079e723 (diff)
Fix normalize-links replace
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/normalize-links.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/normalize-links.sh b/scripts/normalize-links.sh
index c31e37a1..a6b2a34d 100755
--- a/scripts/normalize-links.sh
+++ b/scripts/normalize-links.sh
@@ -21,11 +21,11 @@ if ! [ -d "$TARGET/$VER" ]; then
fi
# Fix relative links for archive
-find ${TARGET} -type f -name '*.html' -print0 | xargs -0 sed -i 's#="/ce/#/'"$VER"'/ce/#g'
-find ${TARGET} -type f -name '*.html' -print0 | xargs -0 sed -i 's#="/ee/#/'"$VER"'/ee/#g'
-find ${TARGET} -type f -name '*.html' -print0 | xargs -0 sed -i 's#="/runner/#/'"$VER"'/runner/#g'
-find ${TARGET} -type f -name '*.html' -print0 | xargs -0 sed -i 's#="/omnibus/#/'"$VER"'/omnibus/#g'
-find ${TARGET} -type f -name '*.html' -print0 | xargs -0 sed -i 's#="/assets/#/'"$VER"'/assets/#g'
+find ${TARGET} -type f -name '*.html' -print0 | xargs -0 sed -i 's#="/ce/#="/'"$VER"'/ce/#g'
+find ${TARGET} -type f -name '*.html' -print0 | xargs -0 sed -i 's#="/ee/#="/'"$VER"'/ee/#g'
+find ${TARGET} -type f -name '*.html' -print0 | xargs -0 sed -i 's#="/runner/#="/'"$VER"'/runner/#g'
+find ${TARGET} -type f -name '*.html' -print0 | xargs -0 sed -i 's#="/omnibus/#="/'"$VER"'/omnibus/#g'
+find ${TARGET} -type f -name '*.html' -print0 | xargs -0 sed -i 's#="/assets/#="/'"$VER"'/assets/#g'
find ${TARGET} -type f -name '*.html' -print0 | xargs -0 sed -i 's#<a href="/">#<a href="/'"$VER"'/">#g'
# Symlink all README.html to index.html