Skip to content

Commit c4ce7e9

Browse files
committed
Added installation check for python-nautilus for pacman
1 parent 2550ce6 commit c4ce7e9

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

install.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,14 @@
44
echo "Installing python-nautilus..."
55
if type "pacman" > /dev/null 2>&1
66
then
7-
sudo pacman -S --noconfirm python-nautilus
7+
# check if already install, else install
8+
pacman -Qi python-nautilus &> /dev/null
9+
if [ `echo $?` -eq 1 ]
10+
then
11+
sudo pacman -S --noconfirm python-nautilus
12+
else
13+
echo "python-nautilus is already installed"
14+
fi
815
elif type "apt-get" > /dev/null 2>&1
916
then
1017
package_name="python-nautilus"

0 commit comments

Comments
 (0)