Skip to content

Commit c5a6820

Browse files
authored
convert some equalities to symbols to use === rather than == (JuliaLang/julia#45941)
1 parent 497b4a8 commit c5a6820

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/managers.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ function launch_on_machine(manager::SSHManager, machine::AbstractString, cnt, pa
281281
end
282282

283283
# Julia process with passed in command line flag arguments
284-
if shell == :posix
284+
if shell === :posix
285285
# ssh connects to a POSIX shell
286286

287287
cmds = "exec $(shell_escape_posixly(exename)) $(shell_escape_posixly(exeflags))"
@@ -297,7 +297,7 @@ function launch_on_machine(manager::SSHManager, machine::AbstractString, cnt, pa
297297
# shell login (-l) with string command (-c) to launch julia process
298298
remotecmd = shell_escape_posixly(`sh -l -c $cmds`)
299299

300-
elseif shell == :csh
300+
elseif shell === :csh
301301
# ssh connects to (t)csh
302302

303303
remotecmd = "exec $(shell_escape_csh(exename)) $(shell_escape_csh(exeflags))"
@@ -313,7 +313,7 @@ function launch_on_machine(manager::SSHManager, machine::AbstractString, cnt, pa
313313
remotecmd = "cd $(shell_escape_csh(dir))\n$remotecmd"
314314
end
315315

316-
elseif shell == :wincmd
316+
elseif shell === :wincmd
317317
# ssh connects to Windows cmd.exe
318318

319319
any(c -> c == '"', exename) && throw(ArgumentError("invalid exename"))

0 commit comments

Comments
 (0)