)]}'
{"labs/osbash/tools/repeat-test.sh":[{"author":{"_account_id":10497,"name":"KATO Tomoyuki","email":"kato.tomoyuki@jp.fujitsu.com","username":"to222"},"change_message_id":"525818792009fb02f1c5da20a7e0c5ad1ba7183c","unresolved":false,"context_lines":[{"line_number":144,"context_line":"    shopt -s nullglob"},{"line_number":145,"context_line":"    cd \"$LOG_DIR\""},{"line_number":146,"context_line":"    if test -n \"$(echo *.auto *.log *.xml)\"; then"},{"line_number":147,"context_line":"        mv *.auto *.log *.xml \"$dir\""},{"line_number":148,"context_line":"    fi"},{"line_number":149,"context_line":"    )"},{"line_number":150,"context_line":""}],"source_content_type":"text/x-sh","patch_set":1,"id":"fa69d971_0763e9b2","line":147,"range":{"start_line":147,"start_character":8,"end_line":147,"end_character":36},"updated":"2015-12-29 23:04:48.000000000","message":"Can we simply use \"mv -f ...\" without if?","commit_id":"69b4da36fee095ef192d601eb5108090082ed330"},{"author":{"_account_id":11109,"name":"Roger Luethi","email":"rl@patchworkscience.org","username":"rluethi"},"change_message_id":"c692478b5a095322b051f1c1070ea287ba85131a","unresolved":false,"context_lines":[{"line_number":144,"context_line":"    shopt -s nullglob"},{"line_number":145,"context_line":"    cd \"$LOG_DIR\""},{"line_number":146,"context_line":"    if test -n \"$(echo *.auto *.log *.xml)\"; then"},{"line_number":147,"context_line":"        mv *.auto *.log *.xml \"$dir\""},{"line_number":148,"context_line":"    fi"},{"line_number":149,"context_line":"    )"},{"line_number":150,"context_line":""}],"source_content_type":"text/x-sh","patch_set":1,"id":"fa69d971_7bd02754","line":147,"in_reply_to":"fa69d971_0763e9b2","updated":"2015-12-30 18:33:08.000000000","message":"Because we are running with \"set -o errexit\", we need to catch the error status if some (or all) log files don\u0027t exists (the \"-f\" won\u0027t change the error status which would be 1 to indicate the error). We could replace the test like this:\n\nmv *.auth *.log *.xml || rc\u003d$?\n\nWe use that method in other places already, I can change the code accordingly if you prefer that. What do you think?","commit_id":"69b4da36fee095ef192d601eb5108090082ed330"},{"author":{"_account_id":10497,"name":"KATO Tomoyuki","email":"kato.tomoyuki@jp.fujitsu.com","username":"to222"},"change_message_id":"56e2c91f39a7534a0e1a571ae3abbb1dac2c1897","unresolved":false,"context_lines":[{"line_number":144,"context_line":"    shopt -s nullglob"},{"line_number":145,"context_line":"    cd \"$LOG_DIR\""},{"line_number":146,"context_line":"    if test -n \"$(echo *.auto *.log *.xml)\"; then"},{"line_number":147,"context_line":"        mv *.auto *.log *.xml \"$dir\""},{"line_number":148,"context_line":"    fi"},{"line_number":149,"context_line":"    )"},{"line_number":150,"context_line":""}],"source_content_type":"text/x-sh","patch_set":1,"id":"fa69d971_4a6d3603","line":147,"in_reply_to":"fa69d971_7bd02754","updated":"2015-12-31 13:58:21.000000000","message":"Thanks for explanation. I like:\n\nmv *.auth *.log *.xml || rc\u003d$?","commit_id":"69b4da36fee095ef192d601eb5108090082ed330"}]}
