)]}'
{"scripts/redstack":[{"author":{"_account_id":14576,"name":"Petr Malik","email":"pmalik@tesora.com","username":"pmalik"},"change_message_id":"1819dbe82fb41596c1c732b50e8da690acbbc688","unresolved":false,"context_lines":[{"line_number":227,"context_line":"        else"},{"line_number":228,"context_line":"            #replace localrc section"},{"line_number":229,"context_line":"            sed -i \u0027/Trove-integration/,/Trove-integration-end/d\u0027 localrc"},{"line_number":230,"context_line":"            eval echo \"\\\"$(cat $REDSTACK_SCRIPTS/localrc.rc)\\\"\" \u003e\u003e localrc"},{"line_number":231,"context_line":"        fi"},{"line_number":232,"context_line":""},{"line_number":233,"context_line":"    else"}],"source_content_type":"application/octet-stream","patch_set":1,"id":"1a930d6b_263dac2b","line":230,"updated":"2015-01-27 16:15:52.000000000","message":"OK, so the above line deletes the Trove-integration section from the local file. This line then appends the contents of redstack\u0027s localrc.\n\nI believe, it will keep duplicating the redstack contents (with potentially different variable values) in the target file every time the script runs.\n\nIn fact, the other case of this IF-ELSE statement suffers the same issue. \n\nThe following command should print only the desired section of a given file:\nsed -n \u0027/Trove-integration/,/Trove-integration-end/p\u0027 $REDSTACK_SCRIPTS/localrc.rc","commit_id":"3233fee2a6b451f6b286ddea486a3476ee469270"}]}
