Fix init when no device ID directory exists

This commit is contained in:
2025-06-01 16:40:24 -04:00
parent 4a0e0f8e9e
commit ca4913f054
2 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ func DirInit(preserveOldConfigDir bool) (string, error) {
// get old device ID before its potential removal
oldDeviceID, err := GetCurrentDeviceID()
if err != nil {
return "", errors.New("unable to get current device ID: " + err.Error())
oldDeviceID = FSMisc
}
// remove existing config directory (if it exists and not in append mode)