This commit is contained in:
as2252258@163.com
2021-07-26 16:08:26 +08:00
parent 159aa4adf3
commit 7e701fa7cb
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -271,6 +271,9 @@ class ServerInotify implements CustomProcess
}
const IG_DIR = [APP_PATH . 'commands', APP_PATH . '.git', APP_PATH . '.gitee'];
/**
* @param $dir
* @return bool
@@ -287,7 +290,7 @@ class ServerInotify implements CustomProcess
return FALSE;
}
if (in_array($dir, [APP_PATH . 'commands', APP_PATH . '.git', APP_PATH . '.gitee'])) {
if (in_array($dir, self::IG_DIR)) {
return FALSE;
}