mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-20 20:08:33 -04:00
Allow unused vars in args and fix more eslint issues
This commit is contained in:
parent
2e3414135f
commit
8d8c38b1a8
17 changed files with 52 additions and 66 deletions
|
@ -1,7 +1,6 @@
|
|||
const pkg = require("../package.json");
|
||||
const fs = require("fs");
|
||||
const rmSync = require("./fs-rmSync.js");
|
||||
const child_process = require("child_process");
|
||||
const childProcess = require("child_process");
|
||||
const util = require("../src/util");
|
||||
|
||||
util.polyfill();
|
||||
|
@ -42,7 +41,7 @@ if (! exists) {
|
|||
function commit(version) {
|
||||
let msg = "Update to " + version;
|
||||
|
||||
let res = child_process.spawnSync("git", ["commit", "-m", msg, "-a"]);
|
||||
let res = childProcess.spawnSync("git", ["commit", "-m", msg, "-a"]);
|
||||
let stdout = res.stdout.toString().trim();
|
||||
console.log(stdout);
|
||||
|
||||
|
@ -52,7 +51,7 @@ function commit(version) {
|
|||
}
|
||||
|
||||
function tag(version) {
|
||||
let res = child_process.spawnSync("git", ["tag", version]);
|
||||
let res = childProcess.spawnSync("git", ["tag", version]);
|
||||
console.log(res.stdout.toString().trim());
|
||||
}
|
||||
|
||||
|
@ -67,7 +66,7 @@ function tagExists(version) {
|
|||
throw new Error("invalid version");
|
||||
}
|
||||
|
||||
let res = child_process.spawnSync("git", ["tag", "-l", version]);
|
||||
let res = childProcess.spawnSync("git", ["tag", "-l", version]);
|
||||
|
||||
return res.stdout.toString().trim() === version;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue