Fixed dpkg-query to -s from -l
This commit is contained in:
parent
816a36ffce
commit
e982c96266
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue