]> gitweb.fluxo.info Git - keyringer.git/commitdiff
Redirect both outputs when checking 'ls' version
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 3 Nov 2017 12:53:11 +0000 (10:53 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 3 Nov 2017 12:53:11 +0000 (10:53 -0200)
lib/keyringer/functions

index b1e2e085d7a782a6ce1168e28b4c16c4849a504c..6f9a5e3ac6831f7f16a2f72cda6f50a0c8f20139 100755 (executable)
@@ -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)"