|
@@ -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'])) {
|