From ccba14ad63e41e60a1ee4db99d6a377be41fc13e Mon Sep 17 00:00:00 2001 From: Aaron Johnson Date: Sun, 15 Sep 2019 17:50:34 -0500 Subject: [PATCH] Updated system utilities sanity check --- run.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/run.rb b/run.rb index b975458..cc3fe0c 100755 --- a/run.rb +++ b/run.rb @@ -36,10 +36,12 @@ print "Checking system utilities ............... " if !system("which nmap 2>&1 >/dev/null") print "FAIL!\n\n".red.bold puts "nmap".yellow.bold + " not found. This utility requires the 'nmap' command (for testing connectivity to temperature probes)" + puts "THIS IS REQUIRED!".red.bold + " Bot initialization failed; exiting..." exit(1) elsif !system("which curl 2>&1 >/dev/null") print "FAIL!\n\n".red.bold puts "curl".yellow.bold + " not found. This utility requires the 'curl' command (for providing IP information to users upon request)" + puts "THIS IS REQUIRED!".red.bold + " Bot initialization failed; exiting..." exit(1) else print "OK\n".green.bold