From 6bfdd463f5d1dfc929fe8be9e09ac132070db1a1 Mon Sep 17 00:00:00 2001 From: MrDoobPG <46342172+MrDoobPG@users.noreply.github.com> Date: Wed, 23 Oct 2019 17:17:16 +0200 Subject: [PATCH] Line fix --- menu/cron/cron.sh | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/menu/cron/cron.sh b/menu/cron/cron.sh index 0bbb2d83..b5fa80e6 100644 --- a/menu/cron/cron.sh +++ b/menu/cron/cron.sh @@ -18,12 +18,12 @@ question1() { tee <<-EOF ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ -⌛ PG Cron - Schedule Cron Jobs (Backups) | $program? +⌛ Cron - Schedule Cron Jobs (Backups) | $program? ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ -⚡ Reference: http://cron.pgblitz.com -[1] No -[2] Yes +[ 1 ] No + +[ 2 ] Yes ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ EOF @@ -41,20 +41,21 @@ question2() { tee <<-EOF ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ -⌛ PG Cron - Backup How Often? +⌛ Cron - Backup How Often? ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ WEEKLY -0 - Sunday -[1] Monday -[2] Tuesday -[3] Wednesday -[4] Thursday -[5] Friday -[6] Saturday + +[ 0 ] - Monday +[ 1 ] - Tuesday +[ 2 ] - Wednesday +[ 3 ] - Thursday +[ 4 ] - Friday +[ 5 ] - Saturday +[ 6 ] - Sunday DAILY -[7] Daily +[ D ] - Daily ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ EOF @@ -62,7 +63,7 @@ EOF read -p '↘️ Type Number | Press [ENTER]: ' typed /var/plexguide/cron/cron.day && break=1 - elif [ "$typed" == "8" ]; then + elif [[ "$typed" == "D" || "$typed" == "d" ]]; then echo "*/1" >/var/plexguide/cron/$program.cron.day && break=1 else badinput; fi }