mirror of
https://github.com/rwinkhart/libmutton.git
synced 2026-08-28 04:46:42 -04:00
Fix init when no device ID directory exists
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user