From 98db1d870be5d2c75e230933a4a8ff873af98ea0 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Fri, 30 Oct 2015 17:10:32 +0100 Subject: derivation_to_json output json to stderr --- derivation_to_json/derivation_to_json.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/derivation_to_json/derivation_to_json.rb b/derivation_to_json/derivation_to_json.rb index db2918d..f4706f3 100755 --- a/derivation_to_json/derivation_to_json.rb +++ b/derivation_to_json/derivation_to_json.rb @@ -140,6 +140,9 @@ def proc_deriv s end if __FILE__ == $0 - puts JSON.parse(proc_deriv(STDIN.gets.strip))["target_groups"].join " " + json = proc_deriv(STDIN.gets.strip) + obj = JSON.parse(json) + STDERR.write "#{json}\n" + puts obj["target_groups"].join " " end -- cgit v1.2.3