diff --git a/extra/checkout-pr.js b/extra/checkout-pr.js index 4b093334..b7d643c5 100644 --- a/extra/checkout-pr.js +++ b/extra/checkout-pr.js @@ -19,10 +19,10 @@ console.log("Checkout pr"); // Checkout the pr let result = childProcess.spawnSync("git", [ "remote", "add", name, `https://github.com/${name}/uptime-kuma` ]); -console.log(result.stdout); -console.error(result.stderr); +console.log(result.stdout.toString()); +console.error(result.stderr.toString()); -result = childProcess.spawnSync("git", [ "checkout", `name/${branch}`, "--force" ]); +result = childProcess.spawnSync("git", [ "checkout", `${name}/${branch}`, "--force" ]); -console.log(result.stdout); -console.error(result.stderr); +console.log(result.stdout.toString()); +console.error(result.stderr.toString());