diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2009-10-22 13:00:43 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2009-10-22 13:00:43 +0200 |
commit | c6c70407baf45e21fcbaaa98a3e0b3adb4b3bdae (patch) | |
tree | 2e7a1c9caeb622e516d5b3cc8d9821ecbfc6bc58 /bashrc/main.sh | |
parent | 61911411ca37701f9f36ce599d24dc70915f3d9d (diff) | |
download | dotfiles-c6c70407baf45e21fcbaaa98a3e0b3adb4b3bdae.tar.gz dotfiles-c6c70407baf45e21fcbaaa98a3e0b3adb4b3bdae.tar.xz dotfiles-c6c70407baf45e21fcbaaa98a3e0b3adb4b3bdae.zip |
do not execute exit for non interactive shells
Diffstat (limited to 'bashrc/main.sh')
-rw-r--r-- | bashrc/main.sh | 4 |
1 files 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" |