Commit 2df99177 authored by Thong Kuah's avatar Thong Kuah

Raise error if failed to cleanup temporary locale changes

parent 957bd3bc
...@@ -38,7 +38,9 @@ namespace :gettext do ...@@ -38,7 +38,9 @@ namespace :gettext do
Rake::Task['gettext:find'].invoke Rake::Task['gettext:find'].invoke
# leave only the required changes. # leave only the required changes.
`git checkout -- locale/*/gitlab.po` unless system('git checkout -- locale/*/gitlab.po')
raise 'failed to cleanup generated locale/*/gitlab.po files'
end
# Remove timestamps from the pot file # Remove timestamps from the pot file
pot_content = File.read pot_file pot_content = File.read pot_file
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment