Aznlilly / EldenRingSaveBackupTool

A tool for backing up your Elden Ring Saves - Seamless Coop Mod Support
MIT License
1 stars 1 forks source link

Potential tweak to grabbing $userID #3

Open eyesoffaith opened 1 year ago

eyesoffaith commented 1 year ago

I noticed when I set my destination directory to place EldenRingBackups in "Roaming/EldenRing" that the logic to grab $userID does not expect an array list. The below should help, but ideally a check to see if an array is returned and pulling the first value would be included as well. Completely understand if this isn't worth your time lol, just thought I'd share. Appreciate the tool :)

$userID = Get-ChildItem -Path $erBasePath -Name -Directory | Where-Object{$_ -match '^\d{17}'}

Aznlilly commented 8 months ago

Hello, Thanks for finding this issue.