mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-05-03 03:10:34 +00:00
Small fixes [stage]
This commit is contained in:
@@ -96,11 +96,11 @@ public class InPlaceKeyStrategy implements SshIdentityStrategy {
|
||||
|
||||
parent.view().touch(file);
|
||||
if (parent.getOsType() != OsType.WINDOWS) {
|
||||
parent.command(CommandBuilder.of().add("chmod", "600").addFile(file));
|
||||
parent.command(CommandBuilder.of().add("chmod", "600").addFile(file)).execute();
|
||||
}
|
||||
parent.view().writeTextFile(file, key.getSecretValue());
|
||||
if (parent.getOsType() != OsType.WINDOWS) {
|
||||
parent.command(CommandBuilder.of().add("chmod", "400").addFile(file));
|
||||
parent.command(CommandBuilder.of().add("chmod", "400").addFile(file)).execute();
|
||||
}
|
||||
|
||||
LocalFileTracker.deleteOnExit(file.asLocalPath());
|
||||
|
||||
Reference in New Issue
Block a user