mirror of
https://git.um-react.app/um/um-react.git
synced 2025-11-28 03:23:02 +00:00
ci: avoid installing debian dependencies
This commit is contained in:
12
scripts/read_json.mjs
Executable file
12
scripts/read_json.mjs
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/env node
|
||||
/* eslint-env node */
|
||||
|
||||
import fs from 'fs';
|
||||
|
||||
const data = JSON.parse(fs.readFileSync(0, 'utf-8').trim());
|
||||
|
||||
let value = data;
|
||||
for (let i = 2; i < process.argv.length; i++) {
|
||||
value = value[process.argv[i]] ?? null;
|
||||
}
|
||||
process.stdout.write(String(value), 'utf-8');
|
||||
Reference in New Issue
Block a user