GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — opencode/packages/core/script/fix-node-pty.ts at dev · moonug/opencode Expand file tree/ Copy pathfix-node-pty.tsMore file actions executable file ·28 lines (25 loc) · 986 Bytes / Copy pathfix-node-pty.tsFile metadata and controlsexecutable file ·28 lines (25 loc) · 986 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 #!/usr/bin/env bun import fs from "fs/promises" import path from "path" import { fileURLToPath } from "url" const __filename = fileURLToPath(import.meta.url) const __dirname = path.dirname(__filename) const dir = path.resolve(__dirname, "..") if (process.platform !== "win32") { const root = path.join(dir, "node_modules", "node-pty", "prebuilds") const dirs = await fs.readdir(root, { withFileTypes: true }).catch(() => []) const files = dirs.filter((x) => x.isDirectory()).map((x) => path.join(root, x.name, "spawn-helper")) const result = await Promise.all( files.map(async (file) => { const stat = await fs.stat(file).catch(() => undefined) if (!stat) return if ((stat.mode & 0o111) === 0o111) return await fs.chmod(file, stat.mode | 0o755) return file }), ) const fixed = result.filter(Boolean) if (fixed.length) { console.log(`fixed node-pty permissions for ${fixed.length} helper${fixed.length === 1 ? "" : "s"}`) } } |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |