diff options
| author | Li Zhineng <[email protected]> | 2024-07-04 19:08:59 +0800 |
|---|---|---|
| committer | Li Zhineng <[email protected]> | 2024-07-04 19:08:59 +0800 |
| commit | f95653394d765d1e478f5565973209ed274c21c3 (patch) | |
| tree | b91a2a28d3b47ff7e713123da89d9c039c654a9e /iptv.sh | |
| parent | 3c53521b337e0aa093e57f3051b8a52cdc21def3 (diff) | |
| download | china-unicom-iptv-gd-f95653394d765d1e478f5565973209ed274c21c3.tar.gz china-unicom-iptv-gd-f95653394d765d1e478f5565973209ed274c21c3.zip | |
colorizes the output
Diffstat (limited to 'iptv.sh')
| -rwxr-xr-x | iptv.sh | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,8 +1,8 @@ #!/usr/bin/env bash -step () { echo "[-] $1"; } +step () { echo -e "\033[32m[-]\033[0m $1"; } -fatal () { echo "[!] $1"; exit 1; } +fatal () { echo -e "\033[31m[!]\033[0m $1"; exit 1; } ensure_curl_is_installed () { if ! command -v curl &>/dev/null; then |
