From 57ca3d74e551c3b6a937dbde9e34f9f691fb19d1 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Tue, 9 Sep 2025 14:54:08 +0200 Subject: [PATCH] Revert "Onlt run updatedb if the install worked" This reverts commit 8e67e717a04085261632f1012ecdd1c013fcf5c3. --- bin/omarchy-pkg-install | 6 ++---- bin/omarchy-pkg-remove | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/bin/omarchy-pkg-install b/bin/omarchy-pkg-install index 2be66506..36916467 100755 --- a/bin/omarchy-pkg-install +++ b/bin/omarchy-pkg-install @@ -16,9 +16,7 @@ pkg_names=$(pacman -Slq | fzf "${fzf_args[@]}") if [[ -n "$pkg_names" ]]; then # Convert newline-separated selections to space-separated for yay - if echo "$pkg_names" | tr '\n' ' ' | xargs sudo pacman -S --noconfirm; then - sudo updatedb - fi - + echo "$pkg_names" | tr '\n' ' ' | xargs sudo pacman -S --noconfirm + sudo updatedb omarchy-show-done fi diff --git a/bin/omarchy-pkg-remove b/bin/omarchy-pkg-remove index e4ad87a0..5408aa9b 100755 --- a/bin/omarchy-pkg-remove +++ b/bin/omarchy-pkg-remove @@ -16,9 +16,7 @@ pkg_names=$(yay -Qqe | fzf "${fzf_args[@]}") if [[ -n "$pkg_names" ]]; then # Convert newline-separated selections to space-separated for yay - if echo "$pkg_names" | tr '\n' ' ' | xargs sudo pacman -Rns --noconfirm; then - sudo updatedb - fi - + echo "$pkg_names" | tr '\n' ' ' | xargs sudo pacman -Rns --noconfirm + sudo updatedb omarchy-show-done fi