From 51ff78de21924eb125b7fb0d8aace4fc43789253 Mon Sep 17 00:00:00 2001 From: Filip Komar Date: Fri, 7 Mar 2014 05:15:40 +0000 Subject: warning improvements --- tools/rebuild_gettext_catalogs.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/rebuild_gettext_catalogs.sh b/tools/rebuild_gettext_catalogs.sh index 011d4c4d8..8460eb40b 100755 --- a/tools/rebuild_gettext_catalogs.sh +++ b/tools/rebuild_gettext_catalogs.sh @@ -8,7 +8,11 @@ error=0 declare -A resources declare -A errors -source ./tools/web_projects.dat +if [ -f ./tools/web_projects.dat ]; then + source ./tools/web_projects.dat +else + echo Critical error!!! It was not possible to load web projects database! +fi for resource in "${!resources[@]}" do @@ -61,6 +65,6 @@ do 20) echo "!!!! Parse error, please fix $error_in_source first !!!! See details above." ;; 30) echo "!!!! Failed to write $error_in_source !!!! See details above." ;; 50) echo "!!!! Script translated_converter.py encounter an error in $error_in_source !!!!" ;; - 60) echo "$error_in_source.po could not be created succesfully!!" ;; + 60) echo "$error_in_source.po could not be created succesfully!! Duplicates?" ;; esac done -- cgit v1.2.1