Skip to content

Commit a293cc4

Browse files
committed
Auto merge of #151679 - clubby789:lockfile-fix, r=Mark-Simulacrum
Fix lockfile update script Fixes #151354 (comment) Now passes `shellcheck` cc @ehuss
2 parents 36e2b8a + 8ff928e commit a293cc4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/tools/update-lockfile.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
#!/bin/sh
1+
#!/bin/bash
22

33
# Updates the workspaces in `.`, `library` and `src/tools/rustbook`
44
# Logs are written to `cargo_update.log`
55
# Used as part of regular dependency bumps
66

77
set -euo pipefail
88

9-
echo -e "\ncompiler & tools dependencies:" > cargo_update.log
9+
printf "\ncompiler & tools dependencies:" > cargo_update.log
1010
# Remove first line that always just says "Updating crates.io index"
1111
cargo update 2>&1 | sed '/crates.io index/d' | \
1212
tee -a cargo_update.log
13-
echo -e "\nlibrary dependencies:" >> cargo_update.log
13+
printf "\nlibrary dependencies:" >> cargo_update.log
1414
cargo update --manifest-path library/Cargo.toml 2>&1 | sed '/crates.io index/d' | \
1515
tee -a cargo_update.log
16-
echo -e "\nrustbook dependencies:" >> cargo_update.log
16+
printf "\nrustbook dependencies:" >> cargo_update.log
1717
cargo update --manifest-path src/tools/rustbook/Cargo.toml 2>&1 | sed '/crates.io index/d' | \
1818
tee -a cargo_update.log

0 commit comments

Comments
 (0)