mirror of
https://github.com/ohmybash/oh-my-bash.git
synced 2024-05-11 05:55:37 +00:00
Revert "oh-my-bash: Show warning and fail for non-interactive shells"
This reverts commit 31f095f3ac7d9a6725b6646c35b131614833067f.
This commit is contained in:
@ -1,10 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Bail out early if non-interactive
|
||||
if [[ $- != *i* ]]; then
|
||||
printf 'oh-my-bash: Shell is not interactive.\n' >&2
|
||||
return 1
|
||||
fi
|
||||
#
|
||||
# Note: We cannot produce any error messages here because, in some systems,
|
||||
# /etc/gdm3/Xsession sources ~/.profile and checks stderr. If there is any
|
||||
# stderr ourputs, it refuses to start the session.
|
||||
case $- in
|
||||
*i*) ;;
|
||||
*) return;;
|
||||
esac
|
||||
|
||||
# Check for updates on initial load...
|
||||
if [ "$DISABLE_AUTO_UPDATE" != "true" ]; then
|
||||
|
Reference in New Issue
Block a user