Files
next.orly.dev/scripts/docker-policy/cs-policy.js
mleku e9fb314496
Some checks failed
Go / build (push) Has been cancelled
Go / release (push) Has been cancelled
fully test and verify policy script functionality
2025-11-11 09:37:42 +00:00

14 lines
297 B
JavaScript

#!/usr/bin/env node
const fs = require('fs')
const filePath = '/home/orly/cs-policy-output.txt'
const fileExists = fs.existsSync(filePath)
if (fileExists) {
fs.appendFileSync(filePath, `${Date.now()}: Hey there!\n`)
} else {
fs.writeFileSync(filePath, `${Date.now()}: Hey there!\n`)
}