Skip to content

Commit d9ac93d

Browse files
authored
Merge pull request #498 from Siddhi-agg/fix-double-bin
fix: Correct PATH handling in installation script
2 parents 456d3bb + d3e43ca commit d9ac93d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

static/script/install-cli.sh

+2-2
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)