mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-08-14 05:21:02 +00:00
[release]
This commit is contained in:
@@ -34,9 +34,9 @@ public class XPipeExecTempDirectory {
|
||||
// Always delete legacy directory and do not care whether it partially fails
|
||||
d.deleteFile(proc, legacyExecTemp).executeAndCheck();
|
||||
|
||||
// Check permissions for home temp directory
|
||||
// Check permissions for home directory
|
||||
// If this is somehow messed up, we can still default back to the system directory
|
||||
if (!checkDirectoryPermissions(proc, targetTemp)) {
|
||||
if (!checkDirectoryPermissions(proc, xpipeHome)) {
|
||||
if (!d.directoryExists(proc, systemTemp).executeAndCheck() || !checkDirectoryPermissions(proc, systemTemp)) {
|
||||
throw new IOException("No permissions to create scripts in either %s or %s".formatted(systemTemp, targetTemp));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user