Skip to content

Commit 91fe3ba

Browse files
committed
Fix release script incompatibility with newer GNU sed
[ci skip]
1 parent 8b5de15 commit 91fe3ba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

release.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ usage() {
3030
}
3131

3232
set_package_publish() {
33-
sed -i '' -e "s/^\\(publish[[:space:]]*=[[:space:]]*\\).*$/\\1$1/" Cargo.toml
33+
sed -i'' -e "s/^\\(publish[[:space:]]*=[[:space:]]*\\).*$/\\1$1/" Cargo.toml
3434
}
3535

3636
set_package_version() {
37-
sed -i '' -e "s/^\\(version[[:space:]]*=[[:space:]]*\\)\"[^\"]*\"/\\1\"$1\"/" Cargo.toml
38-
sed -i '' -e "s/^\\(binrw_derive[[:space:]]*=.*version[[:space:]]*=[[:space:]]*\\)\"[^\"]*\"/\\1\"$1\"/" binrw/Cargo.toml
37+
sed -i'' -e "s/^\\(version[[:space:]]*=[[:space:]]*\\)\"[^\"]*\"/\\1\"$1\"/" Cargo.toml
38+
sed -i'' -e "s/^\\(binrw_derive[[:space:]]*=.*version[[:space:]]*=[[:space:]]*\\)\"[^\"]*\"/\\1\"$1\"/" binrw/Cargo.toml
3939
}
4040

4141
if [ "${1-}" == "--help" ]; then

0 commit comments

Comments
 (0)