Commit 6f212599 authored by Lukas Jelonek's avatar Lukas Jelonek
Browse files

Fix bug: some ghostx installations output the help page on stderr

parent c120d853
......@@ -18,7 +18,7 @@ print('mkdir -p ' + args.output)
# info.json -> Tool info
# result.json -> Tool result
print(" VERSION=\$(ghostx | grep -Eo '[[:digit:]]\\\\.[[:digit:]]\\\\.[[:digit:]]')")
print(" VERSION=\$(ghostx 2>&1 | grep -Eo '[[:digit:]]\\\\.[[:digit:]]\\\\.[[:digit:]]')")
toolconfig = '{\\\\"name\\\\": \\\\"ghostx\\\\", \\\\"database\\\\":' \
+ '\\\\"' + args.database + '\\\\"' + ', \\\\"version\\\\":\\\\"\$VERSION\\\\" }'
print(' echo ' + toolconfig + ' > ' + args.output + '/info.json')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment