Only attempt operation if a package name is selected
This commit is contained in:
parent
e3a3b98e0a
commit
58fbda80ef
@ -1,5 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
yay -Slq | fzf --multi --preview 'yay -Sii {1}' --preview-window=down:75% | xargs -ro yay -S --noconfirm && sudo updatedb
|
pkg_name=$(yay -Slq | fzf --multi --preview 'yay -Sii {1}' --preview-window=down:75%)
|
||||||
|
|
||||||
|
if [[ -n "$pkg_name" ]]; then
|
||||||
|
yay -Sy --noconfirm "$pkg_name"
|
||||||
|
sudo updatedb
|
||||||
~/.local/share/omarchy/bin/omarchy-show-done
|
~/.local/share/omarchy/bin/omarchy-show-done
|
||||||
|
fi
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
yay -Qqe | fzf --multi --preview 'yay -Qi {1}' --preview-window=down:75% | xargs -ro yay -Rns --noconfirm && sudo updatedb
|
pkg_name=$(yay -Qqe | fzf --multi --preview 'yay -Qi {1}' --preview-window=down:75%)
|
||||||
|
|
||||||
|
if [[ -n "$pkg_name" ]]; then
|
||||||
|
yay -Rns --noconfirm "$pkg_name"
|
||||||
|
sudo updatedb
|
||||||
~/.local/share/omarchy/bin/omarchy-show-done
|
~/.local/share/omarchy/bin/omarchy-show-done
|
||||||
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user