mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Onlt run updatedb if the install worked
This commit is contained in:
@@ -16,7 +16,9 @@ pkg_names=$(pacman -Slq | fzf "${fzf_args[@]}")
|
|||||||
|
|
||||||
if [[ -n "$pkg_names" ]]; then
|
if [[ -n "$pkg_names" ]]; then
|
||||||
# Convert newline-separated selections to space-separated for yay
|
# Convert newline-separated selections to space-separated for yay
|
||||||
echo "$pkg_names" | tr '\n' ' ' | xargs sudo pacman -S --noconfirm
|
if echo "$pkg_names" | tr '\n' ' ' | xargs sudo pacman -S --noconfirm; then
|
||||||
sudo updatedb
|
sudo updatedb
|
||||||
|
fi
|
||||||
|
|
||||||
omarchy-show-done
|
omarchy-show-done
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -16,7 +16,9 @@ pkg_names=$(yay -Qqe | fzf "${fzf_args[@]}")
|
|||||||
|
|
||||||
if [[ -n "$pkg_names" ]]; then
|
if [[ -n "$pkg_names" ]]; then
|
||||||
# Convert newline-separated selections to space-separated for yay
|
# Convert newline-separated selections to space-separated for yay
|
||||||
echo "$pkg_names" | tr '\n' ' ' | xargs sudo pacman -Rns --noconfirm
|
if echo "$pkg_names" | tr '\n' ' ' | xargs sudo pacman -Rns --noconfirm; then
|
||||||
sudo updatedb
|
sudo updatedb
|
||||||
|
fi
|
||||||
|
|
||||||
omarchy-show-done
|
omarchy-show-done
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user