Skip to content

Commit 5b7126e

Browse files
committed
update
1 parent 496ab8d commit 5b7126e

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

patch-menu

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,12 @@
11
#!/bin/bash
22

3-
#alpha script to test a patch system for quick fixes in BAP
3+
#script to test a patch system for quick fixes in BAP
44
#KM4ACK 20210805
55

66
MYPATH="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
77
LOGO=${MYPATH}/logo.png
88
DIR=/run/user/$UID
99

10-
#Setup temp directory for BAP patches and download patches
11-
cd $DIR
12-
git init pi-build
13-
cd pi-build
14-
git remote add -f origin https://github.com/km4ack/pi-build.git
15-
git config core.sparseCheckout true
16-
echo "/patch" >> .git/info/sparse-checkout
17-
git pull origin dev
18-
1910
TEMP=/run/user/$UID/patch.txt
2011
MENU(){
2112
ls -I README.md $DIR/pi-build/patch > $TEMP
@@ -37,6 +28,7 @@ PATCH=$(echo ${INFO} | awk -F "|" '{print $1}')
3728
if [ ${BUT} = 1 ] || [ ${BUT} = 252 ];then
3829
echo "cleanup and exit Build a Pi patch tool"
3930
rm -rf $TEMP $DIR/pi-build
31+
#send user back to BAP update tool
4032
${MYPATH}/update && exit
4133
fi
4234

0 commit comments

Comments
 (0)