diff --git a/.github/scripts/update-docs-link.sh b/.github/scripts/update-docs-link.sh index 014b6a646a..5a45347cda 100755 --- a/.github/scripts/update-docs-link.sh +++ b/.github/scripts/update-docs-link.sh @@ -19,7 +19,7 @@ FILE=_typescript.mdx ( cd $CLONE_DIR; - if [[ "$OSTYPE" == "darwin"* ]]; then + if [ "$(uname)" == "Darwin" ]; then # On Mac OS, sed requires an empty string as an argument to -i to avoid creating a backup file sed -i '' -E "s/[0-9]\\.[0-9]\\.[0-9](.* class=\"ts-immutable-sdk-ref-link\")/$VERSION\1/g;" $FILE else