Skip to content

Commit 76ee6a0

Browse files
committed
apparently registration CI does not have a user name
1 parent 15cbdfe commit 76ee6a0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Servers/Servers.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,8 @@ function maybe_create_localhost()
390390
end
391391
julia_exec = joinpath(Sys.BINDIR, "julia")
392392
max_concurrent_jobs = ask_input(Int, "Max Concurrent Jobs", 100)
393-
out = Server("localhost", ENV["USER"], "localhost", port, scheduler, "", julia_exec,
393+
user = haskey(ENV, "USER") ? ENV["USER"] : "unknown_user"
394+
out = Server("localhost", user, "localhost", port, scheduler, "", julia_exec,
394395
dir, 0, max_concurrent_jobs)
395396
save(out)
396397
return out

0 commit comments

Comments
 (0)