lib/astrovan/util.rb in sbfaulkner-astrovan-0.5.0 vs lib/astrovan/util.rb in sbfaulkner-astrovan-0.5.2
- old
+ new
@@ -32,9 +32,9 @@
options = paths.last.is_a?(Hash) ? paths.pop : {}
raise ArgumentError, "You must provide a target using the :to option" unless to = options.delete(:to)
# flatten, so that arrays of paths can be passed as arguments
paths = paths.flatten.join(' ')
# TODO: consider using sudo?
- exec "ln -sf #{path} #{to}", options
+ exec "ln -sf #{paths} #{to}", options
end
end
end