From df43ece1d063e896da43916b9a836da5226c36b9 Mon Sep 17 00:00:00 2001 From: Wolfgang Müller Date: Fri, 2 Jul 2021 14:06:03 +0200 Subject: po: Introduce more robust error handling This commit enables 'errexit' for both shell scripts in po/, ensuring that no further action is taken should one of the commands fail. init-po.sh now tests for the presence of a language code and refuses to continue if none is given. --- po/update-pot.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'po/update-pot.sh') diff --git a/po/update-pot.sh b/po/update-pot.sh index 6ceb21f..e29bfb1 100644 --- a/po/update-pot.sh +++ b/po/update-pot.sh @@ -1,5 +1,7 @@ #!/bin/sh +set -e + _xgettext() { xgettext --package-name=weltschmerz -cTRANSLATORS "$@" -o po/weltschmerz.pot } -- cgit v1.2.3-2-gb3c3