Skip to content

Commit 427d7d6

Browse files
rami3lonur-ozkan
andcommitted
feat(rustup-init/sh): add env var to print arch detection result
Co-authored-by: onur-ozkan <[email protected]>
1 parent a2d5350 commit 427d7d6

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

rustup-init.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -857,4 +857,13 @@ get_strong_ciphersuites_for() {
857857
fi
858858
}
859859

860-
main "$@" || exit 1
860+
set +u
861+
case "$RUSTUP_INIT_SH_PRINT" in
862+
arch | architecture)
863+
get_architecture || exit 1
864+
echo "$RETVAL"
865+
;;
866+
*)
867+
main "$@" || exit 1
868+
;;
869+
esac

0 commit comments

Comments
 (0)