From ba3c1e1b8ab7ccfbc1a06b1dde5a540130305100 Mon Sep 17 00:00:00 2001
From: adrien <adrien@malingrey.fr>
Date: Tue, 11 Apr 2023 18:47:24 +0200
Subject: [PATCH] __DIR__

---
 scan_all.php | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

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");