Skip to content

Commit

Permalink
use open instead of touch to appease Azure fs
Browse files Browse the repository at this point in the history
  • Loading branch information
Shashi Gowda committed Jul 3, 2018
1 parent 5b13849 commit 48bda87
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/AssetRegistry.jl
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ function register(path; registry_file = joinpath(homedir(), ".jlassetregistry.js

# update global registry file

touch(registry_file)
# touch(registry_file) -- this doesn't work on Azure fs
if !isfile(registry_file)
# WARN: may need a lock here
open(_->nothing, registry_file, "w")
end

pidlock = joinpath(homedir(), ".jlassetregistry.lock")

Expand Down

0 comments on commit 48bda87

Please sign in to comment.