Skip to content

Commit

Permalink
sanitize url output when using proxy credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
LongLiveCHIEF committed Dec 6, 2024
1 parent 230e13c commit 6a7b233
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 6a7b233

Please sign in to comment.