Ver Fonte

不用tmp目录

monkeye há 1 ano atrás
pai
commit
bbd9f03589
1 ficheiros alterados com 2 adições e 5 exclusões
  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'])) {