We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05e36f1 commit 6c0626dCopy full SHA for 6c0626d
lib/rake/file_utils.rb
@@ -111,16 +111,14 @@ def ruby(*args, &block)
111
# Attempt to do a normal file link, but fall back to a copy if the link
112
# fails.
113
def safe_ln(*args)
114
- if !LN_SUPPORTED[0]
115
- cp(*args)
116
- else
+ if LN_SUPPORTED[0]
117
begin
118
- ln(*args)
+ return ln(*args)
119
rescue StandardError, NotImplementedError
120
LN_SUPPORTED[0] = false
121
122
end
123
+ cp(*args)
124
125
126
# Split a file path into individual directory names.
0 commit comments