aboutsummaryrefslogtreecommitdiffstats
path: root/bash_include
diff options
context:
space:
mode:
Diffstat (limited to 'bash_include')
-rw-r--r--bash_include2
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`"