aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-11-03 10:53:11 -0200
committerSilvio Rhatto <rhatto@riseup.net>2017-11-03 10:53:11 -0200
commit20d8b1f626207d9731586ff11975a142befb399c (patch)
treebd1e66c501b54525f0f50426c84cfc7903bf3146 /lib
parentdbc0b92c6e32a0b9ca41e57aa58f76e61c71a9cd (diff)
downloadkeyringer-20d8b1f626207d9731586ff11975a142befb399c.tar.gz
keyringer-20d8b1f626207d9731586ff11975a142befb399c.tar.bz2
Redirect both outputs when checking 'ls' version
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)"