diff --git a/scripts/update-en-US-packs.sh b/scripts/update-en-US-packs.sh index 95931275..4e3065ac 100644 --- a/scripts/update-en-US-packs.sh +++ b/scripts/update-en-US-packs.sh @@ -1,2 +1,26 @@ +#!/bin/bash + +# Function to display usage +usage() { + echo "Usage: $0 " + echo "Example: $0 en-US" + exit 1 +} + +# Check if language code is provided +if [ -z "$1" ]; then + usage +fi + +LANGUAGE_CODE="$1" + +# Execute the copy-language-pack script and capture output +echo "Copying language pack for: $LANGUAGE_CODE" + +if sh ./scripts/copy-language-pack.sh "$LANGUAGE_CODE"; then + echo "Successfully copied language pack for: $LANGUAGE_CODE" +else + echo "Error: Failed to copy language pack for: $LANGUAGE_CODE" >&2 + exit 1 +fi -sh ./scripts/copy-language-pack.sh en-US