From 6663cbc68abfb00acc2729ae5044f0336d2ed77f Mon Sep 17 00:00:00 2001 From: Sarah German Date: Tue, 20 Dec 2022 00:02:55 +0000 Subject: Use relative URLs for Algolia results --- scripts/review-replace-urls.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/review-replace-urls.sh b/scripts/review-replace-urls.sh index 108b763a..1e0346a4 100755 --- a/scripts/review-replace-urls.sh +++ b/scripts/review-replace-urls.sh @@ -1,4 +1,4 @@ #!/usr/bin/env bash # Note this uses linux-specific (GNU) find syntax, it does not work with MacOS (BSD) find syntax because of the usage of the 'regextype' flag (and possibly other reasons) -find public/ -type f -regextype egrep -iregex ".*\.(html|js|css|json|xml|txt)" -exec sed --in-place "s#https\?://docs.gitlab.com#https://$CI_COMMIT_REF_SLUG$REVIEW_SLUG.docs.gitlab-review.app#g" "{}" +; +find public/ -type f -regextype egrep -iregex ".*\.(html|css|json|xml|txt)" -exec sed --in-place "s#https\?://docs.gitlab.com#https://$CI_COMMIT_REF_SLUG$REVIEW_SLUG.docs.gitlab-review.app#g" "{}" +; -- cgit v1.2.3