Skip to content

Commit 09b1672

Browse files
authored
Update dependency_cache_task.rb
1 parent 8232473 commit 09b1672

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

rakelib/dependency_cache_task.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,11 @@ def cache_task(uri)
110110

111111
def component_ids
112112
conf = configuration('components').values.flatten.map { |component| component.split('::').last.snake_case }
113-
offline_cache = ENV['ADD_TO_CACHE'].split(':')
114-
(conf << offline_cache).flatten!.uniq!
113+
offline_cache = ENV['ADD_TO_CACHE']
114+
if !offline_cache.nil?
115+
offline_cache = offline_cache.split(':')
116+
(conf << offline_cache).flatten!.uniq!
117+
end
115118
conf
116119
end
117120

0 commit comments

Comments
 (0)