Check Return Status Of Running A Shell Command
> `true`
=> ""
> $?.exitstatus
=> 0
> `false`
=> ""
> $?.exitstatus
=> 1
> `echo 'hello' && exit 2`
=> "hello\n"
> $?
=> #<Process::Status: pid 12284 exit 2>
> $?.exitstatus
=> 2Last updated
> `true`
=> ""
> $?.exitstatus
=> 0
> `false`
=> ""
> $?.exitstatus
=> 1
> `echo 'hello' && exit 2`
=> "hello\n"
> $?
=> #<Process::Status: pid 12284 exit 2>
> $?.exitstatus
=> 2Last updated