From af150dad54083d1bf394f14ffc0592d935537047 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 19 Jun 2026 15:46:43 +0000 Subject: [PATCH 1/2] Fix non-interactive shell setup in installer --- install/install.sh | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/install/install.sh b/install/install.sh index 228c01df..6fdf1828 100755 --- a/install/install.sh +++ b/install/install.sh @@ -183,7 +183,7 @@ phase_shell() { fi if [[ "$SHELL" != "$zsh_path" ]]; then - if chsh -s "$zsh_path" 2>/dev/null; then + if sudo chsh -s "$zsh_path" "$USER" 2>/dev/null /dev/null; then log_ok "Default shell set to zsh (takes effect on next login)." else log_warn "chsh failed — run: chsh -s ${zsh_path}" @@ -195,13 +195,21 @@ phase_shell() { local omz_dir="${HOME}/.config/zsh/oh-my-zsh" if [[ ! -d "$omz_dir" ]]; then log "Installing oh-my-zsh..." - if ZSH="$omz_dir" RUNZSH=no CHSH=no \ - sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" \ - "" --unattended 2>/dev/null; then - log_ok "oh-my-zsh installed." + local omz_installer + omz_installer="$(mktemp)" + if curl -fsSL --connect-timeout 10 --max-time 30 \ + https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh \ + -o "$omz_installer"; then + if ZSH="$omz_dir" RUNZSH=no CHSH=no \ + sh "$omz_installer" "" --unattended 2>/dev/null; then + log_ok "oh-my-zsh installed." + else + log_warn "oh-my-zsh install failed — run manually: ZSH=${omz_dir} sh <(curl -s https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" + fi else log_warn "oh-my-zsh install failed — run manually: ZSH=${omz_dir} sh <(curl -s https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" fi + rm -f "$omz_installer" else log_ok "oh-my-zsh already installed." fi From 6787a3a2309894abfd8fa375c38d5c26aa178b4c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 19 Jun 2026 15:47:21 +0000 Subject: [PATCH 2/2] Fix chsh output redirection in shell phase --- install/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/install.sh b/install/install.sh index 6fdf1828..607256e3 100755 --- a/install/install.sh +++ b/install/install.sh @@ -183,7 +183,7 @@ phase_shell() { fi if [[ "$SHELL" != "$zsh_path" ]]; then - if sudo chsh -s "$zsh_path" "$USER" 2>/dev/null /dev/null; then + if sudo chsh -s "$zsh_path" "$USER" >/dev/null 2>/dev/null; then log_ok "Default shell set to zsh (takes effect on next login)." else log_warn "chsh failed — run: chsh -s ${zsh_path}"