From 8ff928ed4d4fe1eb74c6ce42a5e4387db49394ff Mon Sep 17 00:00:00 2001 From: Jamie Hill-Daniel Date: Mon, 26 Jan 2026 10:30:54 +0000 Subject: [PATCH] Fix lockfile update script --- src/tools/update-lockfile.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tools/update-lockfile.sh b/src/tools/update-lockfile.sh index a968d83d8152..123481b6b681 100755 --- a/src/tools/update-lockfile.sh +++ b/src/tools/update-lockfile.sh @@ -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