diff options
-rw-r--r-- | bash_include | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bash_include b/bash_include index 45ea26b..1bf6aac 100644 --- a/bash_include +++ b/bash_include @@ -6,7 +6,7 @@ # #### if tty -s; then interactive_shell=1; fi -if [ "`echo "$-" | grep "i" `" ]; then interactive_shell=1; fi +if [[ "$-" == *i* ]] ; then interactive_shell=1; fi [ "$interactive_shell" ] && echo "Running .bash_include" [ "$interactive_shell" ] && default_tty_setting="`stty -g`" |