diff options
| author | Li Zhineng <[email protected]> | 2024-07-03 22:54:52 +0800 |
|---|---|---|
| committer | Li Zhineng <[email protected]> | 2024-07-03 22:54:52 +0800 |
| commit | c61c1fefc9adbc11e27d4ec66c16158f74b70f5b (patch) | |
| tree | b224cbc29b5a0a6188fb15a1aa16611d7d8ac554 | |
| parent | fa8f195d72c60442ea892e8c91dc97dec463a3a6 (diff) | |
| download | china-unicom-iptv-gd-c61c1fefc9adbc11e27d4ec66c16158f74b70f5b.tar.gz china-unicom-iptv-gd-c61c1fefc9adbc11e27d4ec66c16158f74b70f5b.zip | |
checks dependencies
| -rwxr-xr-x | iptv.sh | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -46,6 +46,20 @@ if [[ -z "$mac_address" ]]; then fi ## +## Check dependencies +## + +if ! command -v jq &>/dev/null; then + echo "The jq package that handles HTTP JSON response is not installed." + exit 1 +fi + +if ! command -v openssl &>/dev/null; then + echo "The OpenSSL package that handles token computation is not installed." + exit 1 +fi + +## ## Execute the main script ## |
