summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-10-14 23:47:17 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2020-10-14 23:47:17 +0200
commit3ac0dd5a8033d3b356a2976e1dcc6ae8006f903b (patch)
tree5a4cca41ef93f98915926e04a4eb9423f948fac7 /scripts
parente95c5f49aae37ac650fa1078032e61d8cc42af62 (diff)
downloadvim-polyglot-4.13.3.tar.gz
vim-polyglot-4.13.3.zip
Alaways use native vim syntax, fixes #582v4.13.3
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build5
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", [])