diff --git a/menu/functions/serverid.sh b/menu/functions/serverid.sh index 6603b8f2..748deabd 100644 --- a/menu/functions/serverid.sh +++ b/menu/functions/serverid.sh @@ -72,10 +72,9 @@ EOF recreatefolder() { start=$(cat /var/plexguide/server.id) - server_id=$(cat /var/plexguide/server.id) serveridcreate=$(tree -d -L 1 /mnt/gdrive/plexguide/backup | awk '{print $2}' | tail -n +2 | head -n -2 | grep "$(cat /var/plexguide/server.id)") if [[ $start != $serveridcreate ]]; then - rclone --config /opt/appdata/plexguide/rclone.conf mkdir gdrive:/plexguide/backup/${server_id};fi + rclone --config /opt/appdata/plexguide/rclone.conf mkdir gdrive:/plexguide/backup/$(cat /var/plexguide/server.id);fi }