diff --git a/scripts/install.sh b/scripts/install.sh index 415478b..3b70630 100644 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -519,22 +519,12 @@ install_packages() { if [[ $group == aur ]]; then for pkg in "${pkgs[@]}"; do local tmp; tmp=$(mktemp) - if [[ $IS_TTY == true ]]; then - spinner_start " [aur] $pkg" - if paru -S --needed --noconfirm "$pkg" >"$tmp" 2>&1; then - spinner_stop ok "[aur] $pkg"; succeeded+=("$pkg") - else - spinner_stop fail "[aur] $pkg" - warn "paru output:"; cat "$tmp" | indent; failed+=("$pkg") - fi + spinner_start " [aur] $pkg" + if paru -S --needed --noconfirm "$pkg" >"$tmp" 2>&1; then + spinner_stop ok "[aur] $pkg"; succeeded+=("$pkg") else - printf " ... [aur] %s\n" "$pkg" - if paru -S --needed --noconfirm "$pkg" >"$tmp" 2>&1; then - ok "[aur] $pkg"; succeeded+=("$pkg") - else - err "[aur] $pkg" - warn "paru output:"; cat "$tmp" | indent; failed+=("$pkg") - fi + spinner_stop fail "[aur] $pkg" + warn "paru output:"; cat "$tmp" | indent; failed+=("$pkg") fi rm -f "$tmp" done