lib/zold/commands/remote.rb in zold-0.13.4 vs lib/zold/commands/remote.rb in zold-0.13.5
- old
+ new
@@ -188,10 +188,10 @@
@remotes.rescore(score.host, score.port, score.value)
if Semantic::Version.new(VERSION) < Semantic::Version.new(json['version'])
if opts['reboot']
@log.info("#{r}: their version #{json['version']} is higher than mine #{VERSION}, reboot! \
(use --never-reboot to avoid this from happening)")
- exit(0)
+ Kernel.exit(0)
else
@log.info("#{r}: their version #{json['version']} is higher than mine #{VERSION}, \
it's recommended to reboot, but I don't do it because of --never-reboot")
end
end