chore(update): ensure the directory exists
This commit is contained in:
@@ -63,6 +63,7 @@ func SaveUpdateState(s updateState) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
data, _ := json.MarshalIndent(s, "", " ")
|
data, _ := json.MarshalIndent(s, "", " ")
|
||||||
|
_ = os.MkdirAll(filepath.Dir(file), 0755)
|
||||||
_ = os.WriteFile(file, data, 0644)
|
_ = os.WriteFile(file, data, 0644)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user