aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2015-05-31 01:12:07 +1200
committerTom Ryder <tom@sanctum.geek.nz>2015-05-31 01:12:07 +1200
commit295ed6739d8c23d51e5339ce139d46cd86f29996 (patch)
tree397b16addc46080ce7449d28ee5dca9145d3e46d /bash/bashrc.d
parentTranslate remaining aliases to functions (diff)
downloaddotfiles-295ed6739d8c23d51e5339ce139d46cd86f29996.tar.gz
dotfiles-295ed6739d8c23d51e5339ce139d46cd86f29996.zip
Force integer type on color check
Diffstat (limited to 'bash/bashrc.d')
-rw-r--r--bash/bashrc.d/ls.bash2
1 files changed, 1 insertions, 1 deletions
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