Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: conditional sed call based on os #24

Merged
merged 3 commits into from
Aug 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
# v0.0.14 (Mon Aug 19 2024)

#### ⚠️ Pushed to `main`

- chore: conditional sed call based on os ([@rafbcampos](https://github.com/rafbcampos))

#### Authors: 1

- Rafael Campos ([@rafbcampos](https://github.com/rafbcampos))

---

# v0.0.12 (Fri Jul 26 2024)

#### 🐛 Bug Fix
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "browser-devtools",
"displayName": "Player ui devtools",
"version": "0.0.12",
"version": "0.0.13",
"description": "Player UI devtools browser extension",
"author": "Rafael Campos <[email protected]>",
"scripts": {
Expand Down
9 changes: 7 additions & 2 deletions scripts/inject-css.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,13 @@ for subfolder in build/*; do

link_tag="<link rel=\"stylesheet\" href=\"$relative_file\" />"

sed -i "s|</head>|$link_tag</head>|" $devtools_file
if [[ "$OSTYPE" == "darwin"* ]]; then
# Mac OSX
sed -i '' "s|</head>|$link_tag</head>|" $devtools_file
else
# Other OS such as Linux, Windows, etc.
sed -i "s|</head>|$link_tag</head>|" $devtools_file
fi
done
fi
done