From 7200d0bfbc2a9cec58a44a6b9b8e680db4ffc475 Mon Sep 17 00:00:00 2001 From: MrDoobPG <46342172+MrDoobPG@users.noreply.github.com> Date: Thu, 12 Dec 2019 22:54:07 +0100 Subject: [PATCH] Update gcecore.sh --- menu/pgbox/gce/gcecore.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/menu/pgbox/gce/gcecore.sh b/menu/pgbox/gce/gcecore.sh index f174013..cd92873 100644 --- a/menu/pgbox/gce/gcecore.sh +++ b/menu/pgbox/gce/gcecore.sh @@ -27,6 +27,13 @@ exists() { else exists; fi } +badinputgce() { + echo "" + echo "⛔️ ERROR - Bad Input! $typed not exist" + echo "" + read -p 'PRESS [ENTER] ' typed ") if [ "$croncheck" == "0" ]; then bash /opt/plexguide/menu/cron/cron.sh; fi @@ -149,7 +156,7 @@ EOF if [ "$current" != "" ]; then exists && question1; fi current=$(cat /var/plexguide/program.temp | grep "\<$typed\>") - if [ "$current" == "" ]; then badinput1 && question1; fi + if [ "$current" == "" ]; then badinputgce && question1; fi part1 }