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 cd92cd8 commit d59f140Copy full SHA for d59f140
packages/mystmd-py/scripts/bump-version.sh
@@ -2,4 +2,8 @@
2
CURRENT=`awk -F'"' '/"version": ".+"/{ print $4; exit; }' ../mystmd/package.json`
3
PREVIOUS=`awk -F' ' '/version = .+/{ print $3; exit; }' setup.cfg`
4
echo "bumping mystmd-py: $PREVIOUS => $CURRENT"
5
-sed -i "" "s/$PREVIOUS/$CURRENT/" setup.cfg
+if [[ "$OSTYPE" == "darwin"* ]]; then
6
+ sed -i '' -e "s/$PREVIOUS/$CURRENT/" setup.cfg
7
+else
8
+ sed -i'' -e "s/$PREVIOUS/$CURRENT/" setup.cfg
9
+fi
0 commit comments