From: Simon Ruderich Date: Tue, 12 Mar 2013 17:20:11 +0000 (+0100) Subject: setup.sh: Fix ls color detection. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=65afa722c9857e35d194042636824dcbf5947431;p=config%2Fdotfiles.git setup.sh: Fix ls color detection. Broken with set -e change in aa9db4c1b656eab6774b5ae1ade7c6f8bb13a01f. --- 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=