Add Unix installer PATH setup
ci / test (push) Has been cancelled
ci / remote-bench (push) Has been cancelled

This commit is contained in:
Codex
2026-06-11 08:49:01 -04:00
parent a9fd6e7316
commit d58a4244af
+15
View File
@@ -183,6 +183,21 @@ EOF
fi fi
if [ "$role" = "client" ] || [ "$role" = "both" ]; then if [ "$role" = "client" ] || [ "$role" = "both" ]; then
case ":$PATH:" in
*":$bindir:"*) ;;
*)
if [ "$(uname -s)" = "Darwin" ] || [ "$(basename "${SHELL:-}")" = "zsh" ]; then
shell_rc="$HOME/.zshrc"
else
shell_rc="$HOME/.profile"
fi
mkdir -p "$(dirname "$shell_rc")"
if [ ! -f "$shell_rc" ] || ! grep -F "$bindir" "$shell_rc" >/dev/null 2>&1; then
printf '\nexport PATH="%s:$PATH"\n' "$bindir" >>"$shell_rc"
fi
;;
esac
client_config="$config_dir/client.toml" client_config="$config_dir/client.toml"
if [ "$force_config" -eq 1 ] || [ ! -f "$client_config" ]; then if [ "$force_config" -eq 1 ] || [ ! -f "$client_config" ]; then
default_server="${server:-user@example.com}" default_server="${server:-user@example.com}"