From bb2fb60b80c32e3273979158c46e119f0158c501 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20Bartoszkiewicz?= Date: Sun, 26 Jul 2015 22:25:54 +0200 Subject: [PATCH] Uodpornienie na set -u --- prefix.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prefix.sh b/prefix.sh index 092a0a8..e5972b2 100644 --- a/prefix.sh +++ b/prefix.sh @@ -1,3 +1,3 @@ -[[ -z "$BASH_VERSION" ]] || shopt -q login_shell || return -[[ -z "$ZSH_VERSION" ]] || [[ -o login ]] || return +[[ -z "${BASH_VERSION+set}" ]] || shopt -q login_shell || return +[[ -z "${ZSH_VERSION+set}" ]] || [[ -o login ]] || return [[ "$-" == *i* ]] || return -- 2.45.2