mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-09-30 00:56:56 +13:00
Small fixes
This commit is contained in:
parent
cdb0d02ad5
commit
442f8f7324
2 changed files with 4 additions and 3 deletions
|
@ -55,13 +55,13 @@ public class ScriptHelper {
|
|||
|
||||
var applyRcCommand = t.applyRcFileCommand();
|
||||
if (applyRcCommand != null) {
|
||||
content = content + "\n" + applyRcCommand;
|
||||
content = content + "\n" + applyRcCommand + "\n";
|
||||
}
|
||||
|
||||
if (login) {
|
||||
var applyProfilesCommand = t.applyProfileFilesCommand();
|
||||
if (applyProfilesCommand != null) {
|
||||
content = content + "\n" + applyProfilesCommand;
|
||||
content = content + "\n" + applyProfilesCommand + "\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -19,7 +19,8 @@ public class XPipeTempDirectory {
|
|||
var arr = Stream.concat(Stream.of(base, "xpipe"), Arrays.stream(sub)).toArray(String[]::new);
|
||||
var dir = FileNames.join(arr);
|
||||
|
||||
if (!proc.getShellDialect().createFileExistsCommand(proc, dir).executeAndCheck()) {
|
||||
var existsCommand = proc.getShellDialect().createFileExistsCommand(proc, dir);
|
||||
if (!existsCommand.executeAndCheck()) {
|
||||
proc.executeSimpleCommand(
|
||||
proc.getShellDialect().getMkdirsCommand(dir),
|
||||
"Unable to access or create temporary directory " + dir);
|
||||
|
|
Loading…
Reference in a new issue