From c6c70407baf45e21fcbaaa98a3e0b3adb4b3bdae Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Thu, 22 Oct 2009 13:00:43 +0200 Subject: do not execute exit for non interactive shells --- bashrc/main.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bashrc/main.sh b/bashrc/main.sh index d8b5a27..f4fb0d9 100644 --- a/bashrc/main.sh +++ b/bashrc/main.sh @@ -1,10 +1,10 @@ # this file is sourced by all bash shells on startup # test for interactive shell -[[ $- != *i* ]] && exit +[[ $- != *i* ]] && return # return if this script is executed twice -[[ -n $(declare -p _DOTFILES_DIR 2>/dev/null) ]] && exit +[[ -n $(declare -p _DOTFILES_DIR 2>/dev/null) ]] && return declare -r _DOTFILES_DIR="${HOME}/.dotfiles" declare -r _BASHRC_DIR="${_DOTFILES_DIR}/bashrc" -- cgit v1.2.3