Fix lockfile update script
This commit is contained in:
parent
0462e8f7e5
commit
8ff928ed4d
1 changed files with 4 additions and 4 deletions
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
|
||||
# Updates the workspaces in `.`, `library` and `src/tools/rustbook`
|
||||
# Logs are written to `cargo_update.log`
|
||||
|
|
@ -6,13 +6,13 @@
|
|||
|
||||
set -euo pipefail
|
||||
|
||||
echo -e "\ncompiler & tools dependencies:" > cargo_update.log
|
||||
printf "\ncompiler & tools dependencies:" > cargo_update.log
|
||||
# Remove first line that always just says "Updating crates.io index"
|
||||
cargo update 2>&1 | sed '/crates.io index/d' | \
|
||||
tee -a cargo_update.log
|
||||
echo -e "\nlibrary dependencies:" >> cargo_update.log
|
||||
printf "\nlibrary dependencies:" >> cargo_update.log
|
||||
cargo update --manifest-path library/Cargo.toml 2>&1 | sed '/crates.io index/d' | \
|
||||
tee -a cargo_update.log
|
||||
echo -e "\nrustbook dependencies:" >> cargo_update.log
|
||||
printf "\nrustbook dependencies:" >> cargo_update.log
|
||||
cargo update --manifest-path src/tools/rustbook/Cargo.toml 2>&1 | sed '/crates.io index/d' | \
|
||||
tee -a cargo_update.log
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue