pull/284/head^2
KM4ACK 2021-08-05 18:46:45 -05:00
rodzic a52b80dc43
commit 87e13973e4
1 zmienionych plików z 9 dodań i 1 usunięć

Wyświetl plik

@ -10,20 +10,28 @@ echo "Build a Pi Patch Tool"
echo "====================="
}
#Give this patch a unique name. A good idea is
#to give it the application name that is being
#patched followed by the date. ie FLDIDI20210805
PATCHNAME=test-patch20210805
PATCHFILE=$HOME/.config/patch
touch $PATCHFILE
#check to see if patch already applied
PATCHCHECK=$(grep "$PATCHNAME" $PATCHFILE)
#if not, then apply the patch
if [ -z $PATCHCHECK ]; then
#if patch hasn't been applied before, apply it now
clear;echo;echo
echo "This is a test patch"
#write patch name to a file so we can
#look and see if it has been applied before.
echo "$PATCHNAME" >> $PATCHFILE
sleep 3
bash $HOME/pi-build/patch/patch
else
#if patch previously applied, notify user and exit
clear;echo;echo