From f95653394d765d1e478f5565973209ed274c21c3 Mon Sep 17 00:00:00 2001 From: Li Zhineng Date: Thu, 4 Jul 2024 19:08:59 +0800 Subject: colorizes the output --- iptv.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iptv.sh b/iptv.sh index 29308e3..c91c824 100755 --- a/iptv.sh +++ b/iptv.sh @@ -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 -- cgit v1.2.3