mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-27 03:50:12 +03:00
Change fs.rmdir to fs.rm as it is deprecated
This commit is contained in:
parent
0ecaa2cbd7
commit
ed1f88a852
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ function updateWiki(newVersion) {
|
||||||
|
|
||||||
function safeDelete(dir) {
|
function safeDelete(dir) {
|
||||||
if (fs.existsSync(dir)) {
|
if (fs.existsSync(dir)) {
|
||||||
fs.rmdirSync(dir, {
|
fs.rm(dir, {
|
||||||
recursive: true,
|
recursive: true,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue