Skip to content

Commit d3e43ca

Browse files
committed
fix: Correct PATH handling in installation script
Signed-off-by: Siddhi-agg <[email protected]>
1 parent 456d3bb commit d3e43ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

static/script/install-cli.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,14 +299,14 @@ buildPathStr() {
299299
# fish uses a little different syntax to modify the PATH
300300
cat <<END_FISH_SCRIPT
301301
302-
string match -r "kcl" "\$PATH" > /dev/null; or set -gx PATH "\$profile_install_dir/bin" \$PATH
302+
string match -r "kcl" "\$PATH" > /dev/null; or set -gx PATH "$profile_install_dir" \$PATH
303303
304304
END_FISH_SCRIPT
305305
else
306306
# bash and zsh
307307
cat <<END_BASH_SCRIPT
308308
309-
export PATH="$profile_install_dir/bin:\$PATH"
309+
export PATH="$profile_install_dir:\$PATH"
310310
311311
END_BASH_SCRIPT
312312
fi

0 commit comments

Comments
 (0)