|
|
|
@ -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
|
|
|
|
|