Skip to content

Commit

Permalink
Update install.sh
Browse files Browse the repository at this point in the history
Typo
  • Loading branch information
MrDoobPG authored Sep 17, 2019
1 parent 6f15281 commit 42d50c8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions menu/functions/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -207,17 +207,16 @@ gcloud() {

mergerinstall() {
ansible-playbook /opt/plexguide/menu/pg.yml --tags mergerfs
# ansible-playbook /opt/plexguide/menu/pg.yml --tags rcloneinstall
}

rcloneinstall() {
rcversion="$(curl -s https://api.github.com/repos/rclone/rclone/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")')"
rcstored="$(rclone --version | awk '{print $2}' | tail -n 3 | head -n 1 )"

if [[ "$rcversion" == "$rcstored" ]]; then
echo ""
echo "rclone latest stable version check"
elif [[ "$rcversion" != "$rcstored" ]]; then
ansible-playbook /opt/plexguide/menu/pg.yml --tags rcloneinstal
ansible-playbook /opt/plexguide/menu/pg.yml --tags rcloneinstall
fi
}

Expand Down

0 comments on commit 42d50c8

Please sign in to comment.