)]}'
{"pkg/elasticsearch.sh":[{"author":{"_account_id":7118,"name":"Ian Wienand","email":"iwienand@redhat.com","username":"iwienand"},"change_message_id":"e89bc609fceee7c84bd0f2527c59e23a42ec2116","unresolved":false,"context_lines":[{"line_number":27,"context_line":"        wget $ELASTICSEARCH_BASEURL/${file}.sha1.txt -O ${FILES}/${file}.sha1.txt || \\"},{"line_number":28,"context_line":"            ( wget $ELASTICSEARCH_BASEURL/${file}.sha1 -O ${FILES}/${file}.sha1.txt \u0026\u0026"},{"line_number":29,"context_line":"                echo \"  ${file}\" \u003e\u003e ${FILES}/${file}.sha1.txt )"},{"line_number":30,"context_line":"    fi"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"    pushd ${FILES};  sha1sum ${file} \u003e ${file}.sha1.gen;  popd"},{"line_number":33,"context_line":""}],"source_content_type":"text/x-sh","patch_set":2,"id":"bab6814e_0f4a7e83","line":30,"updated":"2016-05-25 00:37:13.000000000","message":"I guess this works ...\n\nIf you wanted, I think this could be refactored quite simply to just use an in memory variable \u0026 vercmp, something like\n\n---\n\n if vercmp ${ELASTICSEARCH_VERSION} \"\u003c\" \"2.0.0\"; then\n   sha\u003d$(wget ... to stdout | awk \u003cextract sha1\u003e)\n else\n   sha\u003d$(wget ... to stdout)\n fi\n\n if [[ ${sha} !\u003d $(sha1sum $file) ]]; then\n   die \"foo\"\n fi\n\n---\n\nwhich seems much simpler to me","commit_id":"76af1ab6fb600a3051f4f18b775b7886763a045d"}]}
