New shell detection

This commit is contained in:
Poil 2012-08-13 20:47:29 +02:00
parent 5db1507b96
commit 7e8fc0e01f

View File

@ -37,7 +37,7 @@
# See the README.md file for a summary of features.
WORKING_SHELL=$(ps -p $$ | tail -n1 | awk '{print $NF}')
WORKING_SHELL=${SHELL##*/}
if [[ "$WORKING_SHELL" == "bash" ]]; then
# Check for recent enough version of bash.