dup: Message about unset DUP_DIR is now being output to STDERR to prevent it from clobbering up redirections of --sample and stuff.

This commit is contained in:
Fabian Schlenz 2021-11-04 11:42:50 +01:00
parent 99370803e3
commit 7ff0f28ed4

2
dup.rb
View File

@ -469,7 +469,7 @@ if ENV['DUP_DIR']
$base_dir = ENV['DUP_DIR'] $base_dir = ENV['DUP_DIR']
else else
$base_dir = File.join(Dir.home, ".dup") $base_dir = File.join(Dir.home, ".dup")
puts "Environment variable DUP_DIR is not set. Looking for .yml files in #{$base_dir}" unless silent_basedir STDERR.puts "Environment variable DUP_DIR is not set. Looking for .yml files in #{$base_dir}" unless silent_basedir
end end
opts = GetoptLong.new( opts = GetoptLong.new(