File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change 7
7
sudo pacman -S --noconfirm python-nautilus
8
8
elif type " apt-get" > /dev/null 2>&1
9
9
then
10
- sudo apt-get install -y python-nautilus
10
+ installed=` apt list --installed python-nautilus -qq 2> /dev/null`
11
+ if [ -z " $installed " ]
12
+ then
13
+ sudo apt-get install -y python-nautilus
14
+ else
15
+ echo " python-nautilus is already installed."
16
+ fi
11
17
elif type " dnf" > /dev/null 2>&1
12
18
then
13
- sudo dnf install -y nautilus-python
19
+ installed=` dnf list --installed nautilus-python 2> /dev/null`
20
+ if [ -z " $installed " ]
21
+ then
22
+ sudo dnf install -y nautilus-python
23
+ else
24
+ echo " nautilus-python is already installed."
25
+ fi
14
26
else
15
27
echo " Failed to find python-nautilus, please install it manually."
16
28
fi
@@ -23,7 +35,7 @@ rm -f ~/.local/share/nautilus-python/extensions/code-nautilus.py
23
35
24
36
# Download and install the extension
25
37
echo " Downloading newest version..."
26
- wget --show-progress -O ~ /.local/share/nautilus-python/extensions/code-nautilus.py https://raw.githubusercontent.com/cra0zy/code-nautilus/master/code-nautilus.py
38
+ wget --show-progress -q - O ~ /.local/share/nautilus-python/extensions/code-nautilus.py https://raw.githubusercontent.com/cra0zy/code-nautilus/master/code-nautilus.py
27
39
28
40
# Restart nautilus
29
41
echo " Restarting nautilus..."
You can’t perform that action at this time.
0 commit comments