Skip to content

Commit

Permalink
Merge pull request #73 from clouseauu/master
Browse files Browse the repository at this point in the history
Ensuring executable command doesn't point to a directory
  • Loading branch information
SergeyKishenin committed Apr 29, 2014
2 parents e055eef + f28a0c7 commit 48df822
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tasks/bower.rake
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def find_command(cmd, paths = [])
paths.each do |path|
exts.each do |ext|
exe = File.join(path, "#{cmd}#{ext}")
return exe if File.executable? exe
return exe if (File.executable?(exe) && File.file?(exe))
end
end
nil
Expand Down

0 comments on commit 48df822

Please sign in to comment.