Fixes in updates

This commit is contained in:
Antonio de la Rosa 2022-02-11 00:12:11 +01:00
parent 25d98341ac
commit 7a3fe536a8
7 changed files with 94 additions and 9 deletions

View file

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
sleep 1
@ -16,7 +16,7 @@ if [[ $DISTRO =~ ^Debian ]]; then
elif [[ $DISTRO =~ ^NAME=\"Arch ]]; then
sudo pacman -S python python-pip
sudo pacman -S --noconfirm python python-pip
else
@ -40,5 +40,26 @@ else
fi
echo '{"error": 0, "status": 0, "progress": 0, "no_progress":0, "message": "Installing distro package for python and detect distribution..."}'
sleep 1
sudo pip3 install distro
if [ $? -eq 0 ]; then
#echo "Installed python3 sucessfully if not error..."
echo '{"error": 0, "status": 0, "progress": 100, "no_progress":0, "message": "Installed distro python package sucessfully..."}'
sleep 1
else
echo "Sorry, cannot install distro python package..."
exit 1;
fi
sleep 1