Revert "oh-my-bash: Show warning and fail for non-interactive shells"

This reverts commit 31f095f3ac7d9a6725b6646c35b131614833067f.
This commit is contained in:
Koichi Murase
2022-01-12 23:30:18 +09:00
parent 51864b9a09
commit e5e3048a06

View File

@ -1,10 +1,14 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Bail out early if non-interactive # Bail out early if non-interactive
if [[ $- != *i* ]]; then #
printf 'oh-my-bash: Shell is not interactive.\n' >&2 # Note: We cannot produce any error messages here because, in some systems,
return 1 # /etc/gdm3/Xsession sources ~/.profile and checks stderr. If there is any
fi # stderr ourputs, it refuses to start the session.
case $- in
*i*) ;;
*) return;;
esac
# Check for updates on initial load... # Check for updates on initial load...
if [ "$DISABLE_AUTO_UPDATE" != "true" ]; then if [ "$DISABLE_AUTO_UPDATE" != "true" ]; then