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

review-replace-urls.sh « scripts - gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1e0346a4ac773d9561f195a9f3e80f0f12810d1a (plain)
1
2
3
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|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" "{}" +;