/ Published in: Bash
Check the shell run script if is bash.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
readlink -f /proc/$$/exe | grep -q bash || { echo >&2 "You must run $0 with bash!" exit 2 }