From 47df7c695b85b7ee47c351e4970f8277d372b921 Mon Sep 17 00:00:00 2001 From: Alexey Kurago Date: Mon, 22 Sep 2025 17:02:22 +0600 Subject: [PATCH 1/3] fix: improve color variable definitions in download-latest.sh --- download-latest.sh | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/download-latest.sh b/download-latest.sh index 1c753a9..0fd3fff 100755 --- a/download-latest.sh +++ b/download-latest.sh @@ -7,13 +7,14 @@ # GLOBALS # Colors -RED='\033[31m' -MUTED='\033[2m' -GREEN='\033[32m' -YELLOW='\033[33m' -BLUE='\033[34m' -BOLD='\033[1m' -DEFAULT='\033[0m' +ESC=$(printf '\033') +RED="${ESC}[31m" +MUTED="${ESC}[2m" +GREEN="${ESC}[32m" +YELLOW="${ESC}[33m" +BLUE="${ESC}[34m" +BOLD="${ESC}[1m" +DEFAULT="${ESC}[0m" # Symbols (ASCII compatible) CHECK_MARK="✓" From 1714cba5fc219780c4f7ef68b4749d5d2898494a Mon Sep 17 00:00:00 2001 From: Alexey Kurago Date: Mon, 22 Sep 2025 17:02:49 +0600 Subject: [PATCH 2/3] fix: change file permissions to 755 for executable in download-latest.sh --- download-latest.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/download-latest.sh b/download-latest.sh index 0fd3fff..52300cb 100755 --- a/download-latest.sh +++ b/download-latest.sh @@ -375,7 +375,7 @@ download_and_install() { fi # Make executable (not necessary on Windows but doesn't hurt) - if ! chmod +x "$bin_dir/$binary_name"; then + if ! chmod 755 "$bin_dir/$binary_name"; then print_error "Failed to make $bin_dir/$binary_name executable" exit 1 fi From 54087a8ce1dde5c19d52dfa9323fe821b88a9f3e Mon Sep 17 00:00:00 2001 From: Alexey Kurago Date: Mon, 22 Sep 2025 17:04:09 +0600 Subject: [PATCH 3/3] fix: remove unused symbols from download-latest.sh --- download-latest.sh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/download-latest.sh b/download-latest.sh index 52300cb..96347bd 100755 --- a/download-latest.sh +++ b/download-latest.sh @@ -16,11 +16,6 @@ BLUE="${ESC}[34m" BOLD="${ESC}[1m" DEFAULT="${ESC}[0m" -# Symbols (ASCII compatible) -CHECK_MARK="✓" -CROSS_MARK="✗" -ARROW="→" - # Project name PNAME='ctx' REPO_OWNER='context-hub' @@ -536,4 +531,4 @@ printf "\n" ensure_bin_dir # Download and install the latest version -download_and_install \ No newline at end of file +download_and_install