New shell detection
This commit is contained in:
parent
5db1507b96
commit
7e8fc0e01f
@ -37,7 +37,7 @@
|
|||||||
|
|
||||||
# See the README.md file for a summary of features.
|
# 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
|
if [[ "$WORKING_SHELL" == "bash" ]]; then
|
||||||
# Check for recent enough version of bash.
|
# Check for recent enough version of bash.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user