Use uname -m over uname --processor #13
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
uname -m seems to be more accurate. On some platforms, uname --processor returns "unknown".
Your way to do wouldn't work, let me explain:
I use
--processoronly in case it exists (iOS Native Shell), that's why I useif [ "$(uname --processor)" ], because it'll return false if it doesnt exist and so automatically useuname -mas per the if statement, but if you doif [ "$(uname -m)" ]it'll always return true asuname -mexists everywhere as far as I know.It would be better to test if it exist and then it is
unknown(why do people implements so useless things ffs).But anyways thanks for this Pull Request 👍
LGTM
Yes thank you 👍