Download Backup/Utils/padd.ps1 from oDotOLabs/AutoO_release: direct link, hf CLI and curl.
- Browser
- Download file 626 Bytes
-
https://huggingface.co/datasets/oDotOLabs/AutoO_release/resolve/main/Backup/Utils/padd.ps1
- Command line
-
hf download hf://datasets/oDotOLabs/AutoO_release/Backup/Utils/padd.ps1
-
curl -L -o padd.ps1 https://huggingface.co/datasets/oDotOLabs/AutoO_release/resolve/main/Backup/Utils/padd.ps1
626 Bytes
| if ($PSScriptRoot) { Set-Location $PSScriptRoot } | |
| $currentDir = $PWD.Path | |
| $adb = Join-Path $currentDir "platform-tools-latest-windows\platform-tools" | |
| $oldPath = [Environment]::GetEnvironmentVariable("Path", "User") | |
| $list = $oldPath -split ";" | Where-Object { $_ -ne "" } | |
| $list = $list | Where-Object { | |
| $_ -ne $currentDir -and | |
| $_ -notlike "*platform-tools*" | |
| } | |
| $targets = @($currentDir, $adb) | |
| foreach ($p in $targets) { | |
| if ($p -and (Test-Path $p)) { | |
| $list += $p | |
| } | |
| } | |
| $newPath = $list -join ";" | |
| [Environment]::SetEnvironmentVariable("Path", $newPath, "User") | |
| $currentDir | |
| $adb | |