Skip to content

Commit

Permalink
Update endbanner.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDoobPG committed Jan 16, 2020
1 parent ef00b76 commit 3f7f6b2
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions menu/plex_dupe/scripts/endbanner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,14 @@
# URL: https://pgblitz.com - http://github.pgblitz.com
# GNU: General Public License v3.0
################################################################################
file="/opt/plex_dupefinder/config.json"
if [[ -f $file ]]; then
timer() {
seconds=90; date1=$((`date +%s` + $seconds));
while [ "$date1" -ge `date +%s` ]; do
echo -ne "$(date -u --date @$(($date1 - `date +%s` )) +%H:%M:%S)\r";
done
}

endbanner() {
tee <<-EOF
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💬 NOTE / INFO MANUAL EDITS IS NEEDED NOW
Expand Down Expand Up @@ -37,7 +42,7 @@ For more advanced libraries, it can look like this:
"TV": 2
},
3.) SAVE it
4.) plex_dupefinder and following the output
4.) [ sudo ] plex_dupefinder and following the output
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
You will need to make sure that Allow media deletion is enabled in Plex.
Expand All @@ -52,5 +57,12 @@ These edits must be made by the user! We will not do this for you, so you have t
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
EOF
fi

timer
doneokay
}

doneokay() {
echo
read -p 'Confirm Info | PRESS [ENTER] ' typed </dev/tty
}

0 comments on commit 3f7f6b2

Please sign in to comment.