@@ -39,13 +39,20 @@ check_supported_distro() {
3939}
4040
4141# Color definitions for output formatting
42- COLOR_INFO=' \033[0;34m'
43- COLOR_WARNING=' \033[1;33m'
44- COLOR_ERROR=' \033[0;31m'
45- COLOR_SUCCESS=' \033[0;32m'
46- COLOR_FAILURE=' \033[0;35m'
47- COLOR_ACTION=' \033[0;36m' # Cyan for action steps
48- COLOR_RESET=' \033[0m'
42+ COLOR_INFO=' \033[0;94m' # cyan \e[96m
43+ COLOR_WARNING=' \033[1;93m' # yellow
44+ COLOR_ERROR=' \033[0;91m' # red
45+ COLOR_SUCCESS=' \033[0;92m' # green
46+ COLOR_FAILURE=' \033[0;91m' # red
47+ COLOR_ACTION=' \033[0;96m' # Cyan
48+ COLOR_RESET=' \033[0m' # reset
49+
50+ unicode_red_light_circle=" \e[91m\U2B24\e[0m"
51+ unicode_green_light_circle=" \e[92m\U2B24\e[0m"
52+ unicode_yellow_light_circle=" \e[93m\U2B24\e[0m"
53+ unicode_blue_light_circle=" \e[94m\U2B24\e[0m"
54+ unicode_cyan_light_circle=" \e[96m\U2B24\e[0m"
55+ unicode_grey_light_circle=" \e[97m\U2B24\e[0m"
4956
5057# Output functions for user feedback (enhanced with emojis)
5158print_output () {
@@ -55,31 +62,31 @@ print_output() {
5562
5663 case " $type " in
5764 INFO)
58- icon=" ℹ️ "
65+ icon=" ${unicode_blue_light_circle} "
5966 color=" $COLOR_INFO "
6067 ;;
6168 ACTION)
62- icon=" 🛠️ "
69+ icon=" ${unicode_cyan_light_circle} "
6370 color=" $COLOR_ACTION "
6471 ;;
6572 WARNING)
66- icon=" ⚠️ "
73+ icon=" ${unicode_yellow_light_circle} "
6774 color=" $COLOR_WARNING "
6875 ;;
6976 ERROR)
70- icon=" ❌ "
77+ icon=" ${unicode_red_light_circle} "
7178 color=" $COLOR_ERROR "
7279 ;;
7380 SUCCESS)
74- icon=" ✅ "
81+ icon=" ${unicode_green_light_circle} "
7582 color=" $COLOR_SUCCESS "
7683 ;;
7784 FAILURE)
78- icon=" 🔥 "
85+ icon=" ${unicode_red_light_circle} "
7986 color=" $COLOR_FAILURE "
8087 ;;
8188 * )
82- icon=" 🧊 "
89+ icon=" ${unicode_grey_light_circle} "
8390 color=" "
8491 ;;
8592 esac
@@ -88,11 +95,9 @@ print_output() {
8895 if [[ $message == * :* ]]; then
8996 local prefix=" ${message%%:* } :"
9097 local suffix=" ${message#*: } "
91- printf ' %b%s%b %s %b%s%b\n' \
92- " $color " " $icon " " $COLOR_RESET " \
93- " $prefix " " $color " " $suffix " " $COLOR_RESET "
98+ printf ' %b\n' " $color $icon $prefix ${color} $suffix $COLOR_RESET "
9499 else
95- printf ' %b%s%b %s \n' " $color " " $icon " " $COLOR_RESET " " $message "
100+ printf ' %b\n' " $color $icon $message "
96101 fi
97102}
98103
@@ -287,7 +292,7 @@ verify_binary_integrity() {
287292 local api_digests
288293 if command -v jq > /dev/null 2>&1 ; then
289294 # Use jq if available (preferred method) - extract just the hash value
290- api_digests=$( printf ' %s' " $api_response " | jq -r ' .assets[].digest.sha256 // empty' 2> /dev/null | sed ' s/^sha256://' )
295+ api_digests=$( printf ' %s' " $api_response " | jq -r ' .assets[].digest // empty' 2> /dev/null | sed ' s/^sha256://' )
291296 else
292297 # Fall back to sed if jq is not available - extract just the hash value
293298 api_digests=$( printf ' %s' " $api_response " | sed -rn ' s|(.*)sha256:([^"]*)".*|\2|p' 2> /dev/null)
@@ -437,7 +442,6 @@ main() {
437442 read release_tag revision <<< " $(get_release_tag)"
438443
439444 print_info " Architecture: $arch "
440- print_info " Download tool: $( check_download_tools) "
441445 print_info " LibTorrent version: $libtorrent_ver "
442446 # Output revision if available
443447 if [[ -n $revision ]]; then
0 commit comments