Skip to content
This repository was archived by the owner on Nov 21, 2018. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions rustup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1014,10 +1014,10 @@ get_architecture() {
# if configure is running in an interactive bash shell. /usr/bin/env
# exists *everywhere*.
local _bin_to_probe="$SHELL"
if [ -z "$_bin_to_probe" -a -e "/usr/bin/env" ]; then
if [ ! -e "$_bin_to_probe" -a -e "/usr/bin/env" ]; then
_bin_to_probe="/usr/bin/env"
fi
if [ -n "$_bin_to_probe" ]; then
if [ -e "$_bin_to_probe" ]; then
file -L "$_bin_to_probe" | grep -q "x86[_-]64"
if [ $? != 0 ]; then
local _cputype=i686
Expand Down