Smaller shell detection (Thx to Michel Barret)

This commit is contained in:
Luc Didry 2012-08-13 11:44:09 +02:00
parent a11b838116
commit 39fc1df488

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=$(ps -p $$ | awk '{n=$NF}END{print n}')
if [[ "$WORKING_SHELL" == "bash" ]]; then
# Check for recent enough version of bash.