resource: only unpack to target if it exists.

This commit is contained in:
Mike McQuaid 2013-11-06 18:34:03 +00:00
parent 5863a72625
commit 1d0515c1d3

View File

@ -61,7 +61,7 @@ class Resource
downloader.stage downloader.stage
if block_given? if block_given?
yield self yield self
else elsif target
target.install Dir['*'] target.install Dir['*']
end end
end end