lib/autoproj/cli/main.rb in autoproj-2.3.0 vs lib/autoproj/cli/main.rb in autoproj-2.3.1
- old
+ new
@@ -43,10 +43,10 @@
cli = CLI.const_get(classname).new
begin
run_args = cli.validate_options(args, options.merge(extra_options))
cli.run(*run_args)
ensure
- cli.notify_env_sh_updated
+ cli.notify_env_sh_updated if cli.respond_to?(:notify_env_sh_updated)
end
end
end
end