Skip to content

Commit 19ebb07

Browse files
committed
MOBILE-4616 lang: Fail if langpack branch is not found
1 parent 959cb17 commit 19ebb07

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/update_lang_functions.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,12 @@ function load_langpacks {
9494
pushd "$LANGPACKS_PATH"
9595

9696
git checkout "langpack_$LANGVERSION"
97-
git pull
97+
if [ $? -ne 0 ]; then
98+
echo "Cannot checkout language repository langpack_$LANGVERSION"
99+
exit 1
100+
fi
98101

102+
git pull
99103
if [ $? -ne 0 ]; then
100104
echo "Cannot update language repository"
101105
exit 1

0 commit comments

Comments
 (0)