Fix error when shearing without a device ID (offline mode)

This commit is contained in:
2024-05-29 13:07:26 -04:00
parent 833eaa9926
commit 54fea00b9d
+1 -1
View File
@@ -101,7 +101,7 @@ func ShearLocal(targetLocationIncomplete, clientDeviceID string) string {
os.Exit(1)
}
if !onServer { // return the device ID if running on the client
if !onServer && len(deviceIDList) > 0 { // return the device ID if running on the client and a device ID exists (online mode)
return deviceIDList[0].Name()
}
return ""