mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-10-05 14:41:33 +00:00
[release]
This commit is contained in:
1 parent
ec96c9fabf
commit
b02ac3139f
2 files changed
+4
-4
No files matched your search
@@ -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