Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
LooseSeal2 committed Jul 20, 2019
1 parent 7f5481a commit 53d62e6
Showing 1 changed file with 2 additions and 25 deletions.
27 changes: 2 additions & 25 deletions menu/plex/plex.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,33 +18,10 @@ badinput() {
badinput2() {
echo
read -p '⛔️ ERROR - BAD INPUT! | PRESS [ENTER] ' typed </dev/tty
question2
question1
}
# FIRST QUESTION

question2() {
tee <<-EOF
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🌎 Plex - Version of Plex To Install?
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1 - Plex Public
2 - Plex Pass
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
EOF

read -p 'Type a Number | Press [ENTER]: ' typed </dev/tty
if [ "$typed" == "1" ]; then
echo public >/var/plexguide/plex.extension && question2
elif [ "$typed" == "2" ]; then
echo plexpass >/var/plexguide/plex.extension && question2
else badinput; fi
}

# SECOND QUESTION
question2() {
question1() {
tee <<-EOF
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Expand Down

0 comments on commit 53d62e6

Please sign in to comment.