Sync (fetch) refactor; return info from server using new JSON type

This commit is contained in:
RandyTheSilly committed 2025-12-09 23:17:59 -05:00
1 parent ffae2e3002
commit e355c810da
6 files changed
+153 -119

No files matched your search

+1 -1
View File
@@ -59,7 +59,7 @@ func DeviceIDGen(oldDeviceID, prefix string) (string, string, string, error) {
cleanupOnFail()
return "", "", "", errors.New("unable to register device ID with server: " + err.Error())
}
sshEntryRootSSHAgeDirSSHIsWindows := strings.Split(output, global.FSSpace)
sshEntryRootSSHAgeDirSSHIsWindows := strings.Split(string(output), global.FSSpace)
_ = sshClient.Close() // ignore error; non-critical/unlikely/not much could be done about it
// remove old device ID file (locally; may not exist)