diff --git a/scripts/ping.js b/scripts/ping.js index b0a3022..58846e1 100644 --- a/scripts/ping.js +++ b/scripts/ping.js @@ -11,8 +11,7 @@ fs.readdirSync("domains").forEach(async (file) => { if (recordType === "A" || recordType === "AAAA") { for (const val of recordValue) { try { - const ping = await exec(`ping -c 1 ${recordValue}`); - console.log(ping); + await exec(`ping -c 1 ${recordValue}`); console.log(`PASS ${domain} ${recordType} ${val}`); fs.appendFileSync("ping_results.txt", `PASS ${domain} ${recordType} ${val}\n`); } catch { @@ -22,8 +21,7 @@ fs.readdirSync("domains").forEach(async (file) => { } } else if (recordType === "CNAME") { try { - const ping = await exec(`ping -c 1 ${recordValue}`); - console.log(ping); + await exec(`ping -c 1 ${recordValue}`); console.log(`PASS ${domain} ${recordType} ${recordValue}`); fs.appendFileSync("ping_results.txt", `PASS ${domain} ${recordType} ${recordValue}\n`); } catch {