From f1846fd15757b12a0396f9be94bcc3ecbcbe7b60 Mon Sep 17 00:00:00 2001 From: Jesse Szwedko Date: Thu, 17 Aug 2023 09:26:37 -0700 Subject: [PATCH] chore(distribution): Fix PATH modification to allow for spaces Closes: https://github.com/vectordotdev/vector/issues/18291 Signed-off-by: Jesse Szwedko --- distribution/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distribution/install.sh b/distribution/install.sh index 2f7941c653164..d3182e1cd44da 100755 --- a/distribution/install.sh +++ b/distribution/install.sh @@ -216,7 +216,7 @@ install_from_archive() { printf " ✓\n" if [ "$modify_path" = "yes" ]; then - local _path="export PATH=$PATH:$prefix/bin" + local _path="export PATH=\"$PATH:$prefix/bin\"" add_to_path "${HOME}/.zprofile" "${_path}" add_to_path "${HOME}/.profile" "${_path}" fi