aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rwxr-xr-xlib/keyringer/functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/keyringer/functions b/lib/keyringer/functions
index b1e2e08..6f9a5e3 100755
--- a/lib/keyringer/functions
+++ b/lib/keyringer/functions
@@ -538,7 +538,7 @@ function keyringer_show_actions {
# Usage
function keyringer_usage {
# are we're using an `ls` that supports `--color`?
- if ls --version 2>/dev/null; then
+ if ls --version > /dev/null 2>&1; then
local keyrings="$(ls --color=never `dirname $CONFIG` | sed -e 's/config//' | xargs)"
else
local keyrings="$(ls `dirname $CONFIG` | sed -e 's/config//' | xargs)"