Permalink
Browse files

Merge pull request #16 from funollet/master

Fixes: command_available can run 'type'.
  • Loading branch information...
2 parents 169f80d + 071bd85 commit 99137a9037ab6b031d6e7184e8972b4bab1997b4 @oscardelben committed Nov 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/sheet.rb
View
@@ -81,7 +81,7 @@ def copy_command
# Utility to check wherever a command is available in the user
# system
def command_available?(cmd)
- %x!type #{cmd}!.chomp.length > 0 rescue false
+ %x!bash -c "type #{cmd}" 2>/dev/null!.chomp.length > 0 rescue false
end
# Returns true if ~/.sheets exists

0 comments on commit 99137a9

Please sign in to comment.