Originally published at: https://www.cyberciti.biz/faq/linux-unix-bash-check-interactive-shell/
How do I check in GNU/Bash if a shell is running in interactive mode or not while writing shell scripts?
Originally published at: https://www.cyberciti.biz/faq/linux-unix-bash-check-interactive-shell/
How do I check in GNU/Bash if a shell is running in interactive mode or not while writing shell scripts?