Skip to content

Commit 359e690

Browse files
committed
Tweak script for macos compat
1 parent 307ccb4 commit 359e690

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/pre-build.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
#!/bin/sh
22
# this updates the editable property on the codecov-cli import in prevent-cli
33
# to be false. This is necessary for the pyinstaller build to work.
4-
sed -i "s/editable\ =\ true/editable\ =\ false/g" prevent-cli/pyproject.toml
4+
if [[ "$OSTYPE" == "darwin"* ]]; then
5+
sed -i '' "s/editable\ =\ true/editable\ =\ false/g" prevent-cli/pyproject.toml
6+
else
7+
sed -i "s/editable\ =\ true/editable\ =\ false/g" prevent-cli/pyproject.toml
8+
fi

0 commit comments

Comments
 (0)