Skip to content

Commit ff6cb3b

Browse files
committed
Fix rustup update to avoid interactive prompts
Redirects stdin from /dev/null when running 'rustup update' to prevent any interactive prompts that may block automated scripts.
1 parent 4b0fb54 commit ff6cb3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

misc/tools.func

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4439,7 +4439,7 @@ function setup_rust() {
44394439
}
44404440

44414441
# Update to latest patch version
4442-
$STD rustup update "$RUST_TOOLCHAIN" || true
4442+
$STD rustup update "$RUST_TOOLCHAIN" </dev/null || true
44434443

44444444
# Ensure PATH is updated for current shell session
44454445
export PATH="$CARGO_BIN:$PATH"

0 commit comments

Comments
 (0)