Fixed dpkg-query to -s from -l

This commit is contained in:
Eric Renfro 2023-09-22 00:36:54 -04:00
parent 816a36ffce
commit e982c96266
Signed by: psi-jack
GPG Key ID: 14977F3A50D9A5BF
1 changed files with 4 additions and 4 deletions

View File

@ -42,10 +42,10 @@ fi
install=""
dpkg-query -l 'rsync' &>/dev/null || install+=" rsync"
dpkg-query -l 'aptitude' &>/dev/null || install+=" aptitude"
dpkg-query -l 'borgbackup' &>/dev/null || install+=" borgbackup"
dpkg-query -l 'borgmatic' &>/dev/null || install+=" borgmatic"
dpkg-query -s 'rsync' &>/dev/null || install+=" rsync"
dpkg-query -s 'aptitude' &>/dev/null || install+=" aptitude"
dpkg-query -s 'borgbackup' &>/dev/null || install+=" borgbackup"
dpkg-query -s 'borgmatic' &>/dev/null || install+=" borgmatic"
if [[ -n "\$install" ]]; then
apt -y install \$install