Skip to content

rustup.sh is being confused by dash into 32 bit install on 64 bit linux host #17850

@farcaller

Description

@farcaller

Specifically,

# Detect 64 bit linux systems with 32 bit userland and force 32 bit compilation
if [ $CFG_OSTYPE = unknown-linux-gnu -a $CFG_CPUTYPE = x86_64 ]
then
    file -L "$SHELL" | grep -q "x86[_-]64"

this check fails with 1, as /bin/sh on default ubuntu 14.04 has an empty $SHELL.

A trivial fix is to use /bin/bash in shebang and update the rustup docs as appropriate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions