Skip to content

Commit b2dd75e

Browse files
Update install.sh
1 parent 4863bbd commit b2dd75e

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

pyfetch-installer/install.sh

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,12 @@ case "$choice" in
3232
y|Y )
3333
echo "Installing dependencies..."
3434
if grep -qi arch /etc/os-release; then
35-
sudo pacman -S --noconfirm python-pyfiglet
35+
sudo pacman -S --noconfirm python-pyfiglet python-packaging
36+
elif grep -qi void /etc/os-release; then
37+
sudo xbps-install -Sy python3-setuptools python3-pyfiglet python3-packaging
3638
else
3739
pip install pyfiglet
40+
pip install packaging
3841
fi
3942
sleep 1
4043
echo "Installing pyfetch..."
@@ -43,17 +46,26 @@ case "$choice" in
4346
sudo rm /usr/bin/pyfetch
4447
rm -rf ~/.config/pyfetch
4548
mkdir ~/.config/pyfetch
49+
mkdir ~/.config/pyfetch/plugins
4650
sudo cp ./.files/pyfetch /usr/bin/pyfetch
4751
cp ./.files/config/pyfetch.conf ~/.config/pyfetch/pyfetch.conf
52+
cp ./.files/config/pluginloader.py ~/.config/pyfetch/pluginloader.py
53+
cp ./.files/config/pluginguard.py ~/.config/pyfetch/pluginguard.py
4854
sudo chmod +x /usr/bin/pyfetch
4955
else
5056
if [ -f ~/.config/pyfetch ]; then
5157
rm -rf ~/.config/pyfetch
5258
mkdir ~/.config/pyfetch
59+
mkdir ~/.config/pyfetch/plugins
5360
cp ./.files/config/pyfetch.conf ~/.config/pyfetch/pyfetch.conf
61+
cp ./.files/config/pluginloader.py ~/.config/pyfetch/pluginloader.py
62+
cp ./.files/config/pluginguard.py ~/.config/pyfetch/pluginguard.py
5463
else
5564
mkdir ~/.config/pyfetch
65+
mkdir ~/.config/pyfetch/plugins
5666
cp ./.files/config/pyfetch.conf ~/.config/pyfetch/pyfetch.conf
67+
cp ./.files/config/pluginloader.py ~/.config/pyfetch/pluginloader.py
68+
cp ./.files/config/pluginguard.py ~/.config/pyfetch/pluginguard.py
5769
fi
5870
sudo cp ./.files/pyfetch /usr/bin/pyfetch
5971
sudo chmod +x /usr/bin/pyfetch

0 commit comments

Comments
 (0)