Skip to content

Commit

Permalink
Update rcupdate
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDoobPG authored and MrDoobPG committed Sep 8, 2019
1 parent 9f7bf7c commit c3b92c5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions menu/alias/templates/rcupdate
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ echo "$rcstored" >> /var/plexguide/checkers/rclonestored.log
rcstored="$(tail -n 1 /var/plexguide/checkers/rclonestored.log)"

if [[ "$rcversion" == "$rcstored" ]]; then
echo " ✅ No update needed !"
echo " ✅ No update needed !" >/var/plexguide/checkers/rclone.log
elif [[ "rcversion" != "rcstored" ]]; then
echo " ⛔ Update possible !"
echo " ⛔ Update possible !" >/var/plexguide/checkers/rclone.log
else echo "stupid line"
fi

rcupdate=$(tail -n 1 /var/plexguide/checkers/rclone.log)
tee <<-EOF
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
rClone Update Panel
rClone Update Panel $rcupdate
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
rclone installed version = $rcstored
Expand All @@ -37,5 +37,5 @@ EOF
read -p 'Type a Number | Press [ENTER]: ' typed </dev/tty
if [ "$typed" == "1" ]; then
curl https://rclone.org/install.sh | sudo bash
elif [[ "$typed" == "Z" || "$typed" == "z" ]]; then
exit
elif [ "$typed" == "Z" || "$typed" == "z" ]; then
fi

0 comments on commit c3b92c5

Please sign in to comment.