mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 13:03:39 +08:00
FIX: Script for pulling translations ignored exit code
This commit is contained in:
parent
978cf9485f
commit
7c3a087ef5
|
@ -60,16 +60,18 @@ end
|
|||
puts 'Pulling new translations...', ''
|
||||
command = "tx pull --mode=developer --language=#{languages.join(',')} --force"
|
||||
|
||||
Open3.popen2e(command) do |stdin, stdout_err, wait_thr|
|
||||
return_value = Open3.popen2e(command) do |_, stdout_err, wait_thr|
|
||||
while (line = stdout_err.gets)
|
||||
puts line
|
||||
end
|
||||
wait_thr.value
|
||||
end
|
||||
|
||||
puts ''
|
||||
|
||||
unless $?.success?
|
||||
puts 'Something failed. Check the output above.', ''
|
||||
exit $?.exitstatus
|
||||
unless return_value.success?
|
||||
STDERR.puts 'Something failed. Check the output above.', ''
|
||||
exit return_value.exitstatus
|
||||
end
|
||||
|
||||
YML_FILE_COMMENTS = <<END
|
||||
|
|
Loading…
Reference in New Issue
Block a user