]> git.nbdom.net Git - nb.git/commitdiff
fix bug jq
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Wed, 2 Mar 2016 16:36:54 +0000 (16:36 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Wed, 2 Mar 2016 16:36:54 +0000 (16:36 +0000)
bin/dbq

diff --git a/bin/dbq b/bin/dbq
index 08f0a5347f4dc80c55744859fe93b241d7046daa..6ae405c7d9c9b55cdd2a85eaf71c7f0b7dd8287e 100755 (executable)
--- a/bin/dbq
+++ b/bin/dbq
@@ -137,7 +137,7 @@ if ($keys{format} eq 'nc') {
   $keys{format} = 'csv';
   open(STDOUT,"|$0 --parse_debug|$0 --csv2txt ".( ( defined($keys{header}) ? $keys{header} : '') eq '0' ? '1' : '0'))
 
-} elsif ( $keys{format} eq 'jq' and $keys{format}='json' ) {
+} elsif ( $keys{format} eq 'jq' ) {
   open(STDOUT,"|$0 --parse_debug|jq .")
 
 } elsif ( $keys{debug} or $Opt{debug}) {