From 65afa722c9857e35d194042636824dcbf5947431 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Tue, 12 Mar 2013 18:20:11 +0100 Subject: [PATCH] setup.sh: Fix ls color detection. Broken with set -e change in aa9db4c1b656eab6774b5ae1ade7c6f8bb13a01f. --- setup.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/setup.sh b/setup.sh index 6bede11..538663d 100755 --- a/setup.sh +++ b/setup.sh @@ -69,12 +69,10 @@ chmod 0600 ~/.less # speeds up shell starts. # # Check if colors are available. -ls --color > /dev/null 2>&1 -if test $? -eq 0; then +if ls --color > /dev/null 2>&1; then ls_color=gnu else - ls -G > /dev/null 2>&1 - if test $? -eq 0; then + if ls -G > /dev/null 2>&1; then ls_color=cli else ls_color= -- 2.45.2