mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-01 04:53:56 +08:00
🌴 Sync 2026-03-18 23:56:09
This commit is contained in:
1 parent
79996b4e00
commit
94f2e1059b
9 files changed
+21
-11
No files matched your search
@@ -41,7 +41,7 @@ const methods = {
|
||||
const tmpFilepath = '/var/run/nikki/profile.json';
|
||||
if (access(filepath, 'r')) {
|
||||
writefile(tmpFilepath, defaults);
|
||||
const command = `yq -p yaml -o json eval-all 'select(fi == 0) *? select(fi == 1)' ${tmpFilepath} ${filepath}`;
|
||||
const command = `yq -M -p yaml -o json eval-all 'select(fi == 0) *? select(fi == 1)' ${tmpFilepath} ${filepath}`;
|
||||
const process = popen(command);
|
||||
if (process) {
|
||||
profile = json(process);
|
||||
|
||||
Reference in new issue
Block a user