A free and open platform for detecting and preventing email attacks like BEC, malware, and credential phishing. Gain visibility and control, hunt for advanced threats, collaborate with the community, and write detections-as-code.
POSIX compliant (no way to check ports, may have to install prereqs)
shellcheck
Current situation:
madi@Madisons-MBP-2 sublime-platform % shellcheck install-and-launch.sh
In install-and-launch.sh line 442:
read -rp 'Would you like to enable auto-updates? [Y/n]: ' yn </dev/tty
^-^ SC3045 (warning): In POSIX sh, read -p is undefined.
In install-and-launch.sh line 444:
[Yy]* | "" ) auto_updates="true"; read -rp 'Your terminal may request permission to add a cron job in the next step. Press enter to continue...'; break;;
^-^ SC3045 (warning): In POSIX sh, read -p is undefined.
In install-and-launch.sh line 494:
sshvars=("$SSH_CONNECTION")
^-----------------^ SC3030 (warning): In POSIX sh, arrays are undefined.
In install-and-launch.sh line 495:
default_host="http://${sshvars[2]}"
^-----------^ SC3054 (warning): In POSIX sh, array references are undefined.
In install-and-launch.sh line 503:
read -rp "Press enter to accept '$default_host' as the default: " sublime_host </dev/tty
^-^ SC3045 (warning): In POSIX sh, read -p is undefined.
Superceded by: https://github.com/sublime-security/sublime-platform/pull/77
Current situation: madi@Madisons-MBP-2 sublime-platform % shellcheck install-and-launch.sh
In install-and-launch.sh line 442: read -rp 'Would you like to enable auto-updates? [Y/n]: ' yn </dev/tty ^-^ SC3045 (warning): In POSIX sh, read -p is undefined.
In install-and-launch.sh line 444: [Yy]* | "" ) auto_updates="true"; read -rp 'Your terminal may request permission to add a cron job in the next step. Press enter to continue...'; break;; ^-^ SC3045 (warning): In POSIX sh, read -p is undefined.
In install-and-launch.sh line 494: sshvars=("$SSH_CONNECTION") ^-----------------^ SC3030 (warning): In POSIX sh, arrays are undefined.
In install-and-launch.sh line 495: default_host="http://${sshvars[2]}" ^-----------^ SC3054 (warning): In POSIX sh, array references are undefined.
In install-and-launch.sh line 503: read -rp "Press enter to accept '$default_host' as the default: " sublime_host </dev/tty ^-^ SC3045 (warning): In POSIX sh, read -p is undefined.
For more information: https://www.shellcheck.net/wiki/SC3030 -- In POSIX sh, arrays are undefined. https://www.shellcheck.net/wiki/SC3045 -- In POSIX sh, read -p is undefined. https://www.shellcheck.net/wiki/SC3054 -- In POSIX sh, array references are...