Skip to content

Commit

Permalink
chore: make bump.sh compatible for Linux (#206)
Browse files Browse the repository at this point in the history
Change `-i .bak` to `-i.bak`, which works for both BSD and Linux.
  • Loading branch information
doitian committed Jan 17, 2019
1 parent e759128 commit 0b3dbaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion devtools/release/bump.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ main() {
exit 1
fi
local v="$1"
find . -name 'Cargo.toml' -print0 | xargs -0 sed -i .bak 's/^version = .*/version = "'"$v"'"/'
find . -name 'Cargo.toml' -print0 | xargs -0 sed -i.bak 's/^version = .*/version = "'"$v"'"/'
find . -name 'Cargo.toml.bak' -exec rm -f {} \;
cargo check
}
Expand Down

0 comments on commit 0b3dbaa

Please sign in to comment.