diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2020-10-14 23:47:17 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2020-10-14 23:47:17 +0200 |
commit | 3ac0dd5a8033d3b356a2976e1dcc6ae8006f903b (patch) | |
tree | 5a4cca41ef93f98915926e04a4eb9423f948fac7 /scripts/build | |
parent | e95c5f49aae37ac650fa1078032e61d8cc42af62 (diff) | |
download | vim-polyglot-4.13.3.tar.gz vim-polyglot-4.13.3.zip |
Alaways use native vim syntax, fixes #582v4.13.3
Diffstat (limited to '')
-rwxr-xr-x | scripts/build | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/build b/scripts/build index 6f85776b..c3ffd1dd 100755 --- a/scripts/build +++ b/scripts/build @@ -311,7 +311,7 @@ def copy_file(package, src, dest) end def download(packages) - packages.map { |p| p["remote"] or raise "No remote for: " + p["name"] }.uniq.each_slice(20) do |remotes| + packages.map { |p| p["remote"] }.compact.uniq.each_slice(20) do |remotes| remotes.map do |remote| Thread.new do repo, branch, path, dir = parse_remote(remote) @@ -488,6 +488,9 @@ def extract(packages) output = [] packages.map do |package| + if !package["remote"] + next + end repo, branch, path, dir = parse_remote(package["remote"]) dirs = package.fetch("dirs", default_dirs) ignored_dirs = package.fetch("ignored_dirs", []) |