Fix install from deb

This commit is contained in:
Digital Studium 2024-03-29 10:27:12 +03:00
parent fd302b3275
commit 942652cc12
1 changed files with 1 additions and 1 deletions

2
a
View File

@ -12,7 +12,7 @@ if [[ $action == "Install" || $action == "Remove" ]]; then
package=$(apt-cache search '' | sort | cut --delimiter ' ' --fields 1 | fzf --multi --cycle --reverse --preview 'apt-cache show {1}')
sudo apt ${action,,} $package -y
elif [[ $action == "Install from .deb file" ]]; then
find ~ -name *.deb | fzf | xargs -I _ sudo apt install -y _
find ~ -name "*.deb" | fzf | xargs -I _ sudo apt install -y _
elif [[ $action == "Update" || $action == "Upgrade" || $action == "Autoremove" ]]; then
sudo apt ${action,,} -y
fi