Skip to content

Commit

Permalink
Repalce 'sed -i' with 'sed' + 'mv'
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron1011 committed Dec 31, 2019
1 parent e399fc9 commit 3d63a18
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ci/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ main() {
# We test against Cargo versions that don't support 'default-run'
# As a workaround, we remove 'default-run' from the Cargo.toml
# on CI
sed -i 's/default-run = "xargo"//g' Cargo.toml
# Unfortunately, we can't use 'sed -i', as this doesn't work on OS X
sed 's/default-run = "xargo"//g' Cargo.toml > Cargo.toml.new
mv Cargo.toml.new Cargo.toml
cross build --target $TARGET --locked
cross run --bin xargo --target $TARGET -- -V

Expand Down

0 comments on commit 3d63a18

Please sign in to comment.