[release]

This commit is contained in:
crschnick
2023-07-13 14:08:58 +00:00
parent ec96c9fabf
commit b02ac3139f
2 changed files with 4 additions and 4 deletions
@@ -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));
}