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

This commit is contained in:
2025-12-09 23:17:59 -05:00
parent ffae2e3002
commit e355c810da
6 changed files with 153 additions and 119 deletions
+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)