Improve OS detection of rustup-init.sh#2042
Conversation
|
Given I discovered that #1946 was a bad issue (my fault) I'm not sure we need this. |
|
Maybe not, but you may not wan't to solely rely on the existence of |
|
Fair, I'll give this a bit more of a ponder. Belt and braces can't hurt I suppose. |
|
I'm not sure I like the amount of code churn needed to have the global |
|
I remain uncomfortable with this change. If a reduced scope patch is produced I'll consider it, otherwise I'll close this PR soon. Thank you for caring enough to try and fix this. |
|
its pretty trivial really. _arch -> downloader -> check_help_for. Its one code path, one variable. |
|
Yes, I could just pass it through like you suggested. I'll try that soon. |
kinnison
left a comment
There was a problem hiding this comment.
This looks plausible. I'm not in a position to fully review the change right now, but I shall endeavour to do so soon. My gut feeling says this could be merged now.
|
I apologise for the delay, my December was crazy and then I was unwell. 👍 |
|
I've rebased your branch. Assuming this passes CI, I'll merge. |
Improve OS detection of rustup-init.sh
An attempt to fix #1946.
Checks if
$ARCHcontains"darwin"before checking the the existence ofsw_versand the software version of an alleged darwin os.