1
0
Fork 1
mirror of https://github.com/zen-browser/desktop.git synced 2025-07-07 21:49:58 +02:00

Update update-en-US-packs.sh

Signed-off-by: Cristian Cezar Moisés <ethicalhacker@riseup.net>
This commit is contained in:
Cristian Cezar Moisés 2025-01-04 04:27:49 +00:00 committed by GitHub
parent ae5526c928
commit 8ab4f8bd93
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2,14 +2,14 @@
# Function to display usage # Function to display usage
usage() { usage() {
echo "Usage: $0 <language-code>" echo "Usage: $0 <language-code>"
echo "Example: $0 en-US" echo "Example: $0 en-US"
exit 1 exit 1
} }
# Check if language code is provided # Check if language code is provided
if [ -z "$1" ]; then if [ -z "$1" ]; then
usage usage
fi fi
LANGUAGE_CODE="$1" LANGUAGE_CODE="$1"
@ -18,8 +18,8 @@ LANGUAGE_CODE="$1"
echo "Copying language pack for: $LANGUAGE_CODE" echo "Copying language pack for: $LANGUAGE_CODE"
if sh ./scripts/copy-language-pack.sh "$LANGUAGE_CODE"; then if sh ./scripts/copy-language-pack.sh "$LANGUAGE_CODE"; then
echo "Successfully copied language pack for: $LANGUAGE_CODE" echo "Successfully copied language pack for: $LANGUAGE_CODE"
else else
echo "Error: Failed to copy language pack for: $LANGUAGE_CODE" >&2 echo "Error: Failed to copy language pack for: $LANGUAGE_CODE" >&2
exit 1 exit 1
fi fi