Skip to content

Commit 8b3f637

Browse files
authored
Merge pull request #1048 from galexander1/single_equals
fix inadvertent dependency on bash through use of == string comparison
2 parents 5b0dd1f + fb8b82f commit 8b3f637

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rustup-init.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -230,14 +230,14 @@ get_architecture() {
230230

231231
xscale | arm)
232232
local _cputype=arm
233-
if [ "$_ostype" == "linux-android" ]; then
233+
if [ "$_ostype" = "linux-android" ]; then
234234
local _ostype=linux-androideabi
235235
fi
236236
;;
237237

238238
armv6l)
239239
local _cputype=arm
240-
if [ "$_ostype" == "linux-android" ]; then
240+
if [ "$_ostype" = "linux-android" ]; then
241241
local _ostype=linux-androideabi
242242
else
243243
local _ostype="${_ostype}eabihf"
@@ -246,7 +246,7 @@ get_architecture() {
246246

247247
armv7l)
248248
local _cputype=armv7
249-
if [ "$_ostype" == "linux-android" ]; then
249+
if [ "$_ostype" = "linux-android" ]; then
250250
local _ostype=linux-androideabi
251251
else
252252
local _ostype="${_ostype}eabihf"

0 commit comments

Comments
 (0)