/ Published in: Bash
![](/img/icon_sav.png?v3)
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 }
Comments
![RSS Feed for Comments RSS Icon](/images/rss.png?v3)
readlink -f /proc/$$/exe | grep -q bash || { echo >&2 "You must run $0 with bash!" exit 2 }