Skip to content

Commit

Permalink
Update serverid.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDoobPG authored and MrDoobPG committed Nov 28, 2019
1 parent 205d6d2 commit 444ab26
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions menu/functions/serverid.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
################################################################################
touch /var/plexguide/server.id.stored
source /opt/plexguide/menu/functions/functions.sh
abc="/var/plexguide"
start=$(cat /var/plexguide/server.id)
stored=$(cat /var/plexguide/server.id.stored)


serverid() {

Expand All @@ -27,7 +29,7 @@ EOF
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
EOF
sleep 3
bash /opt/plexguide/menu/interface/serverid.sh
serverid
exit
else
tee <<-EOF
Expand All @@ -37,9 +39,8 @@ EOF
EOF

# Prevents From Repeating
echo "$typed" >/var/plexguide/server.id
cat /var/plexguide/server.id >/var/plexguide/server.id.stored

echo "$typed" >${abc}/server.id
cat ${abc}/server.id >${abc}/server.id.stored
sleep 3
fi

Expand Down

0 comments on commit 444ab26

Please sign in to comment.