Skip to content

Commit cfa86ba

Browse files
committed
better package installed checking
1 parent 2d29699 commit cfa86ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ then
77
sudo pacman -S --noconfirm python-nautilus
88
elif type "apt-get" > /dev/null 2>&1
99
then
10-
installed=`apt list --installed 2> /dev/null | grep python-nautilus`
10+
installed=`apt list --installed python-nautilus -qq 2> /dev/null`
1111
if [ -z "$installed" ]
1212
then
1313
sudo apt-get install -y python-nautilus
@@ -16,7 +16,7 @@ then
1616
fi
1717
elif type "dnf" > /dev/null 2>&1
1818
then
19-
installed=`dnf list installed 2> /dev/null | grep nautilus-python`
19+
installed=`dnf list --installed nautilus-python 2> /dev/null`
2020
if [ -z "$installed" ]
2121
then
2222
sudo dnf install -y nautilus-python

0 commit comments

Comments
 (0)