We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c382466 commit dd04b63Copy full SHA for dd04b63
scripts/sed_links.sh
@@ -6,5 +6,11 @@
6
# change it over on ClickHouse/ClickHouse once the PR has been merged
7
# on ClickHouse/clickhouse-docs
8
9
-pwd
10
-sed -i '' 's|(../../quick-start\.mdx)|(/get-started/quick-start)|g' docs/operations/utilities/clickhouse-local.md
+# Detect OS and use appropriate sed syntax
+if [[ "$OSTYPE" == "darwin"* ]]; then
11
+ # macOS
12
+ sed -i '' 's|(../../quick-start\.mdx)|(/get-started/quick-start)|g' docs/operations/utilities/clickhouse-local.md
13
+else
14
+ # Linux
15
+ sed -i 's|(../../quick-start\.mdx)|(/get-started/quick-start)|g' docs/operations/utilities/clickhouse-local.md
16
+fi
0 commit comments