#!/usr/bin/env ruby require "racecar" require "racecar/cli" begin Racecar::Cli.main(ARGV) rescue SignalException => e # We might receive SIGTERM before our signal handler is installed. if Signal.signame(e.signo) == "TERM" exit(0) else raise end rescue # Exceptions are printed to STDERR and sent to the error handler # in `Racecar::Cli#run`, so we don't need to do anything here. exit(1) else exit(0) end