Skip to content

Commit acc5425

Browse files
create trigger directory on pkg run
1 parent b8b06af commit acc5425

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/programs/pkg/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -592,6 +592,11 @@ export default {
592592
await fs.write_file(GRAPH_PATH, "{}");
593593
}
594594

595+
// create /var/lib/pkg/triggers if it doesn't exist
596+
if (!(await fs.exists(TRIGGER_DIR))) {
597+
await fs.make_dir(TRIGGER_DIR);
598+
}
599+
595600
// load graph
596601
try {
597602
graph = JSON.parse(await fs.read_file("/var/lib/pkg/graph.json") as string, json_convert_dep_arrs_to_sets);

0 commit comments

Comments
 (0)