diff --git a/scan_all.php b/scan_all.php index f8a46ee..98aa277 100644 --- a/scan_all.php +++ b/scan_all.php @@ -6,10 +6,10 @@ if (! function_exists('str_ends_with')) { } } -if (!file_exists("scans")) mkdir("scans"); -if (!file_exists("site")) mkdir("site"); +if (!file_exists(__DIR__."/scans")) mkdir(__DIR__."/scans"); +if (!file_exists(__DIR__."/site")) mkdir(__DIR__."/site"); -foreach (scandir(__DIR__."/confs/") as $file) { +foreach (scandir(__DIR__."/confs") as $file) { if (str_ends_with($file, ".yaml")) { $site = str_replace(".yaml", "", $file); $yaml = yaml_parse_file(__DIR__."/confs/$file");