mirror of
				https://github.com/zen-browser/desktop.git
				synced 2025-10-26 12:27:50 +00: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
					Cristian Cezar Moisés
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							c38c82bf6a
						
					
				
				
					commit
					87a3c923a6
				
			| @@ -1,2 +1,26 @@ | ||||
| #!/bin/bash | ||||
|  | ||||
| # Function to display usage | ||||
| usage() { | ||||
|     echo "Usage: $0 <language-code>" | ||||
|     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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user