Skip to content

Commit

Permalink
add no-op mode for rustup script
Browse files Browse the repository at this point in the history
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 <work@onurozkan.dev>
  • Loading branch information
onur-ozkan committed May 15, 2024
1 parent 4e7a16c commit 028fb18
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rustup-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -808,4 +808,6 @@ get_strong_ciphersuites_for() {
fi
}

main "$@" || exit 1
if [ "$NO_OP" != "1" ]; then
main "$@" || exit 1
fi

0 comments on commit 028fb18

Please sign in to comment.