diff --git a/mpbackup b/mpbackup index e279e65..b462bf9 100644 --- a/mpbackup +++ b/mpbackup @@ -137,7 +137,11 @@ config_names = options[:config_names] if config_names.empty? puts "No configuration name has been given. Will use the first "\ "configuration from the file (‘#{configs.dig(0, 'name')}’)." - backup configs[0] + if options[:prune] + prune configs[0] + else + backup configs[0] + end else config_hash = configs.map {|c| [c['name'], c]}.to_h config_names.each do |name|