From e189acb4d63724d096f6db3b26fbedfbdcda183d Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sat, 21 Jun 2014 14:35:22 +0200 Subject: [PATCH] use set -eu Also correct check if $SSH_CONNECTION is set. --- setup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.sh b/setup.sh index 08efb21..ee5fed1 100755 --- a/setup.sh +++ b/setup.sh @@ -18,7 +18,7 @@ # along with this program. If not, see . -set -e +set -eu . ../lib.sh @@ -132,7 +132,7 @@ if terminal_available screen-256color; then echo 'screenrc: running on virtual terminal, disabling 256 colors' # Called through SSH connection, assume the local system supports 256 # colors. - elif test -n "$SSH_CONNECTION"; then + elif test -n "${SSH_CONNECTION:+set}"; then use_256colors=1 # We have rxvt-unicode installed, check if it supports 256 colors. elif installed urxvt; then -- 2.45.2