From 89815e4dfdb3fc597dfbce33c03297de8056c6ca Mon Sep 17 00:00:00 2001 From: KM4ACK Date: Fri, 7 Jan 2022 16:53:11 -0600 Subject: [PATCH] add bap repair tool --- build-a-pi | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/build-a-pi b/build-a-pi index ed71a01..ac7616e 100755 --- a/build-a-pi +++ b/build-a-pi @@ -560,6 +560,26 @@ EOF sudo mv build-a-pi.desktop /usr/share/applications/ +#create repair-bap tool +cat < /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 #####################################