Skip to content

Commit

Permalink
Fix OS detection
Browse files Browse the repository at this point in the history
  • Loading branch information
carleeto committed Aug 11, 2023
1 parent 4381c3c commit 568bc42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/scripts/update-docs-link.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 568bc42

Please sign in to comment.