Skip to content

Commit

Permalink
detectOS
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Feb 11, 2020
1 parent 3f387c5 commit d9513a7
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/bot/precompileInclude.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,28 @@
"""
detectOS()
Returns Operating System of a machine as a string.
"""
function detectOS()
allos = [Sys.iswindows,
Sys.isapple,
Sys.islinux,
Sys.isbsd,
Sys.isdragonfly,
Sys.isfreebsd,
Sys.isnetbsd,
Sys.isopenbsd,
Sys.isjsvm]
for os in allos
if os()
output = string(os)[3:end]
break
end
end
return output
end

################################################################
"""
precompile_pather(package_name::String)
Expand Down

0 comments on commit d9513a7

Please sign in to comment.