diff --git a/oh-my-bash.sh b/oh-my-bash.sh index 9b5dffb..83cf81a 100644 --- a/oh-my-bash.sh +++ b/oh-my-bash.sh @@ -1,10 +1,10 @@ #!/usr/bin/env bash # Bail out early if non-interactive -case $- in - *i*) ;; - *) return;; -esac +if [[ $- != *i* ]]; then + printf 'oh-my-bash: Shell is not interactive.\n' >&2 + return 1 +fi # Check for updates on initial load... if [ "$DISABLE_AUTO_UPDATE" != "true" ]; then