lib/clamby/command.rb in clamby-1.6.0 vs lib/clamby/command.rb in clamby-1.6.1
- old
+ new
@@ -19,11 +19,10 @@
args = [path, '--no-summary']
if Clamby.config[:daemonize]
args << '--fdpass' if Clamby.config[:fdpass]
args << '--stream' if Clamby.config[:stream]
- args << "--config-file=#{Clamby.config[:config_file]}" if Clamby.config[:config_file]
end
new.run scan_executable, *args
case $CHILD_STATUS.exitstatus
@@ -72,9 +71,10 @@
private
def default_args
args = []
+ args << "--config-file=#{Clamby.config[:config_file]}" if Clamby.config[:daemonize] && Clamby.config[:config_file]
args << '--quiet' if Clamby.config[:output_level] == 'low'
args << '--verbose' if Clamby.config[:output_level] == 'high'
args
end