Fix temp dirs creation (#2209)
Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
This commit is contained in:
@@ -119,7 +119,12 @@ public abstract class AbstractArtifactRepository implements ArtifactRepository {
|
||||
}
|
||||
// try, if not supported - ok
|
||||
if (!file.setExecutable(false)) {
|
||||
log.debug("Can't set executable permissions for temp file {}", file);
|
||||
log.debug("Can't remove executable permissions for temp file {}", file);
|
||||
}
|
||||
if (directory) {
|
||||
if (!file.setExecutable(true, true)) {
|
||||
log.debug("Can't set executable permissions for temp directory {} for the owner", file);
|
||||
}
|
||||
}
|
||||
return file;
|
||||
} catch (final IOException e) {
|
||||
|
||||
Reference in New Issue
Block a user