From 40b2ce14d04ac0dcbc852c2bd8ba928982697c52 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Fri, 11 Dec 2015 14:24:32 +1300 Subject: Whoops, dropped an important character --- bash/bashrc.d/keep.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bash/bashrc.d/keep.bash') diff --git a/bash/bashrc.d/keep.bash b/bash/bashrc.d/keep.bash index c71a80a9..1b2fd9b7 100644 --- a/bash/bashrc.d/keep.bash +++ b/bash/bashrc.d/keep.bash @@ -120,7 +120,7 @@ EOF keeps=("${bashkeep}"/*.bash) keeps=("${keeps[@]##*/}") keeps=("${keeps[@]%.bash}") - ((${keeps[@]})) || exit 0 + ((${#keeps[@]})) || exit 0 printf '%s\n' "${keeps[@]}" ) } -- cgit v1.2.3