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

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