()
| 52 | } |
| 53 | |
| 54 | function createTimestamp() { |
| 55 | const now = new Date(); |
| 56 | const pad = (value) => String(value).padStart(2, '0'); |
| 57 | return `${now.getUTCFullYear()}${pad(now.getUTCMonth() + 1)}${pad(now.getUTCDate())}${pad(now.getUTCHours())}${pad(now.getUTCMinutes())}${pad(now.getUTCSeconds())}`; |
| 58 | } |
| 59 | |
| 60 | function runCommand(command, args) { |
| 61 | const result = spawnSync(command, args, { |