diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2015-12-11 14:24:32 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2015-12-11 14:24:32 +1300 |
commit | 40b2ce14d04ac0dcbc852c2bd8ba928982697c52 (patch) | |
tree | d7968cc9929e4f6b669e8724ca675c3d303dd84b | |
parent | Put printing/globbing in subshell (diff) | |
download | dotfiles-40b2ce14d04ac0dcbc852c2bd8ba928982697c52.tar.gz dotfiles-40b2ce14d04ac0dcbc852c2bd8ba928982697c52.zip |
Whoops, dropped an important character
-rw-r--r-- | bash/bashrc.d/keep.bash | 2 |
1 files changed, 1 insertions, 1 deletions
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[@]}" ) } |