Skip to content

Commit

Permalink
fix exclude-file to exclude_file issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Hammond committed Apr 24, 2015
1 parent 541185d commit a88027e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/fpm/command.rb
Expand Up @@ -140,7 +140,7 @@ def help(*args)
next excludes
end # -x / --exclude

option "--exclude-file", "EXLCUDE_PATH",
option "--exclude-file", "EXCLUDE_PATH",
"The path to a file containing a newline-sparated list of "\
"patterns to exclude from input."

Expand Down Expand Up @@ -353,9 +353,9 @@ def execute

# If --exclude-file was specified, read it as a file and append to
# the exclude pattern list.
if !exclude-file.nil?
if !File.exists?(exclude-file)
logger.fatal("File given for --exclude-file does not exist (#{exclude-file})")
if !exclude_file.nil?
if !File.exists?(exclude_file)
logger.fatal("File given for --exclude-file does not exist (#{exclude_file})")
return 1
end

Expand Down

0 comments on commit a88027e

Please sign in to comment.