Skip to content

Commit

Permalink
Merge pull request #654 from alanfranz/master
Browse files Browse the repository at this point in the history
Enh: Improved message if a config file is missing
  • Loading branch information
jordansissel committed Mar 7, 2014
2 parents 21b0424 + 381101e commit c70caa4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/fpm/package/rpm.rb
Expand Up @@ -349,6 +349,7 @@ def output(output_path)
allconfigs = []
self.config_files.each do |path|
cfg_path = File.expand_path(path, staging_path)
raise "Config file path #{cfg_path} does not exist" unless File.exist?(cfg_path)
Find.find(cfg_path) do |p|
allconfigs << p.gsub("#{staging_path}/", '') if File.file? p
end
Expand Down

0 comments on commit c70caa4

Please sign in to comment.