Skip to content

Commit

Permalink
Move global downloadcmd to non windows branch
Browse files Browse the repository at this point in the history
  • Loading branch information
musm committed Jun 2, 2017
1 parent a909b64 commit 64cb9ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/interactiveutil.jl
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,6 @@ end

# file downloading

downloadcmd = nothing
if is_windows()
function download(url::AbstractString, filename::AbstractString)
ps = "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe"
Expand All @@ -580,6 +579,7 @@ if is_windows()
filename
end
else
downloadcmd = nothing
function download(url::AbstractString, filename::AbstractString)
global downloadcmd
if downloadcmd === nothing
Expand Down

0 comments on commit 64cb9ae

Please sign in to comment.