Skip to content

Commit

Permalink
fix tests and completion install
Browse files Browse the repository at this point in the history
  • Loading branch information
Roger-luo committed Sep 21, 2020
1 parent c3b255c commit 595c380
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/tools/build.jl
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,14 @@ function install_script(m::Module, configs::Configurations.Comonicon)
end

function install_completion(m::Module, configs::Configurations.Comonicon)
completions_dir = expanduser(joinpath(configs.install.path, "completions"))
sh = detect_shell()
sh === nothing && return

@info "generating auto-completion script for $sh"
script = completion_script(sh, m)
script === nothing && return

completions_dir = joinpath(configs.install.path, "completions")
if !ispath(completions_dir)
mkpath(completions_dir)
end
Expand Down
2 changes: 1 addition & 1 deletion test/configurations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ read_configs(XYZ; user="Roger-luo", repo="Foo") == Configurations.Comonicon(
filter_stdlibs = false,
cpu_target = "native",
precompile = Precompile(
execution_file = ["deps/precopmile.jl"],
execution_file = ["precopmile.jl"],
statements_file = String[],
),
),
Expand Down

0 comments on commit 595c380

Please sign in to comment.