lib/launch_agent/cli.rb in launch-agent-0.6.0 vs lib/launch_agent/cli.rb in launch-agent-0.6.1
- old
+ new
@@ -9,10 +9,10 @@
def agent
raise 'full command must be supplied' if @argv.empty?
daemon = @opts[:daemon]
interval = @opts[:interval]
- env = @opts[:env].split(',')
+ env = (@opts[:env] || '').split(',')
wdir = @opts[:wdir]
agent = nil
if daemon
agent = LaunchAgent::Daemon.new(*@argv)