Skip to content

Commit 8ff928e

Browse files
committed
Fix lockfile update script
1 parent 0462e8f commit 8ff928e

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)