From 6a7b23307d77f80dc8ad30faa1c76c1de4eaa0a3 Mon Sep 17 00:00:00 2001 From: Brian Vanderbusch Date: Fri, 6 Dec 2024 13:36:12 -0600 Subject: [PATCH] sanitize url output when using proxy credentials --- scripts/install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/install.sh b/scripts/install.sh index 271d839c14..7f85ca685f 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -55,7 +55,9 @@ download_binary() { _file="$_dir/input.tar.gz" _router="$_dir/router$_ext" - say "Downloading router from $_url ..." 1>&2 + local _safe_url + _safe_url=$(echo "$_url" | sed -E 's|https://[^@]+@|https://|') + say "Downloading router from $_safe_url ..." 1>&2 ensure mkdir -p "$_dir" downloader "$_url" "$_file"