diff options
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/rebuild_gettext_catalogs.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/rebuild_gettext_catalogs.sh b/tools/rebuild_gettext_catalogs.sh index 6de1bf567..1367871ff 100755 --- a/tools/rebuild_gettext_catalogs.sh +++ b/tools/rebuild_gettext_catalogs.sh @@ -36,6 +36,7 @@ do if [ $? -eq 1 ]; then # there are differences errors[$php_source]=0 mv ./langs/en/$resource.tmp ./langs/en/$resource.pot + rm ./langs/en/$resource.copy echo Changes in ./langs/en/$resource.pot else # Cleanup as there are no changes in $resource errors[$php_source]=5 @@ -46,7 +47,9 @@ do else # diff not possible if [ -f ./langs/en/$resource.tmp ]; then mv ./langs/en/$resource.tmp ./langs/en/$resource.pot + rm ./langs/en/$resource.copy else + rm ./langs/en/$resource.copy rm ./langs/en/$resource.pot if [ -f ./langs/en/$resource.copy ]; then mv ./langs/en/$resource.copy ./langs/en/$resource.pot |