From 295ed6739d8c23d51e5339ce139d46cd86f29996 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 31 May 2015 01:12:07 +1200 Subject: Force integer type on color check --- bash/bashrc.d/ls.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash/bashrc.d/ls.bash b/bash/bashrc.d/ls.bash index 322644c5..5456bf99 100644 --- a/bash/bashrc.d/ls.bash +++ b/bash/bashrc.d/ls.bash @@ -2,7 +2,7 @@ # checks that color is available in the terminal within the function if [[ $LS_COLORS ]] ; then ls() { - local colors=$(tput colors 2>/dev/null) + local -i colors=$(tput colors 2>/dev/null) if ((colors >= 8)) ; then command ls --color=auto "$@" else -- cgit v1.2.3