aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler/vendor/thor/actions/create_link.rb
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2011-09-18 19:15:19 -0700
committerAndre Arko <andre@arko.net>2011-09-18 19:15:19 -0700
commit5f0c751d86646f1c1a603733b8b56dea1c61fad0 (patch)
tree18e92e547734a8164188eca081dd2032a22d5db6 /lib/bundler/vendor/thor/actions/create_link.rb
parentd0c2aa38de5466cf225794e9a5d83310285f3cfc (diff)
downloadbundler-5f0c751d86646f1c1a603733b8b56dea1c61fad0.tar.gz
Revert "Update to Thor 0.15.2.rc"
This reverts commit 2eb123ab46877354d8a86e6bba6537568c768e4f.
Diffstat (limited to 'lib/bundler/vendor/thor/actions/create_link.rb')
-rw-r--r--lib/bundler/vendor/thor/actions/create_link.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/vendor/thor/actions/create_link.rb b/lib/bundler/vendor/thor/actions/create_link.rb
index 864a1e99..1975644a 100644
--- a/lib/bundler/vendor/thor/actions/create_link.rb
+++ b/lib/bundler/vendor/thor/actions/create_link.rb
@@ -41,7 +41,7 @@ class Thor
invoke_with_conflict_check do
FileUtils.mkdir_p(File.dirname(destination))
# Create a symlink by default
- config[:symbolic] = true if config[:symbolic].nil?
+ config[:symbolic] ||= true
File.unlink(destination) if exists?
if config[:symbolic]
File.symlink(render, destination)