Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rustup-init: remove dependency on file command #543

Merged
merged 1 commit into from
Jun 23, 2016

Commits on Jun 23, 2016

  1. rustup-init: remove dependency on file command

    Some distros don't install file(1) by default.  For the purposes of userspace
    architecture detection, rather than screenscrape file(1), we can check the ELF
    header directly with only tools that are included in the default coreutils.
    
    Note that printf is a builtin in some shells (like /bin/dash on Debian), and
    may be less featureful than the one from coreutils, but that the syntax here
    should work on all such shells.
    
    Tested against bash, dash, and busybox sh.
    zarvox committed Jun 23, 2016
    Configuration menu
    Copy the full SHA
    7032684 View commit details
    Browse the repository at this point in the history