From f02a441359b326141889ff291e5f79340a85cea1 Mon Sep 17 00:00:00 2001 From: aminya Date: Sun, 16 Feb 2020 05:22:58 -0600 Subject: [PATCH] detectOS scoping bug fix --- src/bot/precompile_include.jl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/bot/precompile_include.jl b/src/bot/precompile_include.jl index fad351338..1fd708b17 100644 --- a/src/bot/precompile_include.jl +++ b/src/bot/precompile_include.jl @@ -14,12 +14,17 @@ allos_funs = [ Sys.isnetbsd, Sys.isopenbsd, Sys.isjsvm] + os = "" + local osfun for osfun in allos_funs if osfun() os = string(osfun)[3:end] break end end + if os == "" + @error "os is not detected" + end return os, osfun end ################################################################