This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # setup-playwright-browser.sh | |
| # Sets up headless Chrome + Playwright for web automation scripts. | |
| # Tested on Ubuntu 24.x / 25.x. Should work on most Debian-based distros. | |
| set -euo pipefail | |
| GREEN='\033[0;32m'; YELLOW='\033[1;33m'; RED='\033[0;31m'; NC='\033[0m' | |
| info() { echo -e "${GREEN}[+]${NC} $*"; } | |
| warn() { echo -e "${YELLOW}[!]${NC} $*"; } | |
| error() { echo -e "${RED}[✗]${NC} $*" >&2; exit 1; } |