From 028fb18f4be26469202532ceccfb720c3c1d6301 Mon Sep 17 00:00:00 2001 From: onur-ozkan Date: Wed, 15 May 2024 20:33:50 +0300 Subject: [PATCH] add no-op mode for rustup script When calling this script, it immediately starts the download process. This change is mostly useful for when we want to source this file from another script file. Signed-off-by: onur-ozkan --- rustup-init.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rustup-init.sh b/rustup-init.sh index de0c317850f..e37a9f774d1 100755 --- a/rustup-init.sh +++ b/rustup-init.sh @@ -808,4 +808,6 @@ get_strong_ciphersuites_for() { fi } -main "$@" || exit 1 +if [ "$NO_OP" != "1" ]; then + main "$@" || exit 1 +fi