Show updatable devices

This commit is contained in:
Aleks Rutins 2025-06-11 13:59:34 -04:00
parent c5d1e86088
commit 3b81e0d385
Signed by: asr
SSH key fingerprint: SHA256:FmBZCNi7KeAu0razw+aXQ73L7/RclSsyqnnyBfrOEfg

View file

@ -65,3 +65,12 @@ await info(
);
console.log(serials.join(","));
await info("Devices with available updates:");
await info(
devices
.filter((d) => d.AvailableOSUpdates.filter(Boolean).length > 0)
.map((d) => d.serial_number)
.join(","),
);