Skip to content

Commit

Permalink
Nothing can be found in PATH if its not set
Browse files Browse the repository at this point in the history
  • Loading branch information
ranjib committed Apr 8, 2015
1 parent 2735470 commit e7a69e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/fpm/util.rb
Expand Up @@ -24,6 +24,8 @@ class ProcessFailed < StandardError; end

# Is the given program in the system's PATH?
def program_in_path?(program)
# return false if path is not set
return false unless ENV['PATH']
# Scan path to find the executable
# Do this to help the user get a better error message.
envpath = ENV["PATH"].split(":")
Expand Down

0 comments on commit e7a69e3

Please sign in to comment.