File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ yad --title="Build a Pi Patch Tool" --width=500 --height=500 \
2222 --button=" Apply Patch" :2)
2323BUT=$?
2424
25+
2526PATCH=$( echo ${INFO} | awk -F " |" ' {print $1}' )
2627
2728# cleanup and exit upon user request
@@ -32,6 +33,17 @@ rm -rf $TEMP $DIR/pi-build
3233${MYPATH} /update && exit
3334fi
3435
36+
37+ # check to verify that a patch has been selected
38+ # Thank Ken, NB6S for catching this bug!
39+ if [ -z $INFO ]; then
40+ yad --form --width=500 --text-align=center --center --title=" Build-a-Pi Patch Tool" --text-align=center \
41+ --image ${LOGO} --window-icon=${LOGO} --image-on-top --separator=" |" --item-separator=" |" \
42+ --text=" <b>Please select a patch\rand try again.</b>" \
43+ --button=gtk-close
44+ MENU
45+ fi
46+
3547# verify patch has not been applied already
3648echo " getting patchname"
3749PATCHNAME=$( grep PATCHNAME= $DIR /pi-build/patch/${PATCH} | sed ' s/PATCHNAME=//' )
You can’t perform that action at this time.
0 commit comments