add bap repair tool

pull/367/head
KM4ACK 2022-01-07 16:53:11 -06:00
rodzic 689e65b9d8
commit 89815e4dfd
1 zmienionych plików z 20 dodań i 0 usunięć

Wyświetl plik

@ -560,6 +560,26 @@ EOF
sudo mv build-a-pi.desktop /usr/share/applications/
#create repair-bap tool
cat <<EOF > /run/user/$UID/repair-bap
#!/bin/bash
if [ ! -f $HOME/pi-build/update ]; then
echo "################################"
echo "# BAP update tool not found. #"
echo "# Repairing, please stand by #"
echo "################################"
cd $HOME
git clone https://github.com/km4ack/pi-build.git || echo "Could not connect to Github. Check your internet and try again"
echo "Repair complete. Run the Build a Pi update tool using the shortcut in the Pi menu"
else
clear;echo;echo
echo "Update tool is present on the system."
fi
EOF
chmod +x /run/user/$UID/repair-bap
sudo mv /run/user/$UID/repair-bap /usr/local/bin/
#####################################
# Install Base Apps
#####################################