Smaller shell detection (Thx to Michel Barret)
This commit is contained in:
parent
a11b838116
commit
39fc1df488
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user