Fix: adb single device

This commit is contained in:
Wroclaw 2022-08-04 21:58:06 +02:00
parent 1ed0e6e7ec
commit 033978b5fb

View file

@ -227,7 +227,7 @@ function main {
[String]$selectedDevice = '' [String]$selectedDevice = ''
if ($devices.Length -eq 1) { if ($devices.Length -eq 1) {
$selectedDevice = ($devices | ForEach-Object {$_.split()[0]})[0] $selectedDevice = ($devices | ForEach-Object {$_.split()[0]})
} }
else { else {
$selectedDevice = (renderForm -items ($devices | ForEach-Object {$_.split()[0]}) -label "Select deployment target" -title "Installer for ReVanced - target" -mode One) $selectedDevice = (renderForm -items ($devices | ForEach-Object {$_.split()[0]}) -label "Select deployment target" -title "Installer for ReVanced - target" -mode One)