diff options
author | Patrick Simianer <p@simianer.de> | 2015-10-30 17:10:32 +0100 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2015-10-30 17:10:32 +0100 |
commit | 98db1d870be5d2c75e230933a4a8ff873af98ea0 (patch) | |
tree | 9d935c4e006c3d0d9181841e653c51ab2976ff67 /derivation_to_json | |
parent | 126469db91682e0fe41a668c5f8f341053f81dcf (diff) |
derivation_to_json output json to stderr
Diffstat (limited to 'derivation_to_json')
-rwxr-xr-x | derivation_to_json/derivation_to_json.rb | 5 |
1 files changed, 4 insertions, 1 deletions
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 |