Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash if in terminal

if [[ $- == *i* ]]; then
    do_interactive_stuff
fi
Source by devconnected.com #
 
PREVIOUS NEXT
Tagged: #bash #terminal
ADD COMMENT
Topic
Name
5+5 =