mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-02 11:59:17 -05:00
Add a flag to pull_translations.rb to force pull of all translations
This commit is contained in:
parent
ae2e1af123
commit
1cddfd64c9
1 changed files with 5 additions and 5 deletions
|
@ -18,17 +18,17 @@ if `which tx`.strip.empty?
|
||||||
end
|
end
|
||||||
|
|
||||||
puts "Pulling new translations...", ""
|
puts "Pulling new translations...", ""
|
||||||
# TODO: The following tx command may need to always use "-f" to force pull all translations.
|
|
||||||
# I don't understand how it decides to skip some files, but it seems to skip
|
command = "tx pull --mode=developer #{ARGV.include?('force') ? '-f' : ''}"
|
||||||
# even when there are new translations on the server sometimes.
|
|
||||||
Open3.popen2e('tx pull --mode=developer') do |stdin, stdout_err, wait_thr|
|
Open3.popen2e(command) do |stdin, stdout_err, wait_thr|
|
||||||
while line = stdout_err.gets
|
while line = stdout_err.gets
|
||||||
puts line
|
puts line
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
puts ""
|
puts ""
|
||||||
|
|
||||||
if !$?.success?
|
unless $?.success?
|
||||||
puts "Something failed. Check the output above.", ""
|
puts "Something failed. Check the output above.", ""
|
||||||
exit $?.exitstatus
|
exit $?.exitstatus
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue