Revert "Onlt run updatedb if the install worked"

This reverts commit 8e67e717a0.
This commit is contained in:
David Heinemeier Hansson
2025-09-09 14:54:08 +02:00
parent 8e67e717a0
commit 57ca3d74e5
2 changed files with 4 additions and 8 deletions

View File

@@ -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