monkeye 1 год назад
Родитель
Сommit
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');
 	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)) {
 if (!is_writable($tmpPath)) {
-	gexit('system temp path not writable');
+	gexit('system path not writable');
 }
 }
 
 
 if (!empty($confs['git']['path'])) {
 if (!empty($confs['git']['path'])) {