소스 검색

不用tmp目录

monkeye 1 년 전
부모
커밋
bbd9f03589
1개의 변경된 파일2개의 추가작업 그리고 5개의 파일을 삭제
  1. 2 5
      gitsync.php

+ 2 - 5
gitsync.php

@@ -35,12 +35,9 @@ if (empty($confs['sync']['toPath']) || !file_exists($confs['sync']['toPath']) ||
 	gexit('sync.toPath not found');
 }
 
-$tmpPath = sys_get_temp_dir();
-if (!file_exists($tmpPath)) {
-	gexit('system temp path not found');
-}
+$tmpPath = __DIR__;
 if (!is_writable($tmpPath)) {
-	gexit('system temp path not writable');
+	gexit('system path not writable');
 }
 
 if (!empty($confs['git']['path'])) {