From ee6d4cb570a04937739e825cf6467b6c463e42ef Mon Sep 17 00:00:00 2001 From: crschnick Date: Wed, 16 Aug 2023 18:27:05 +0000 Subject: [PATCH] Script generation fixes [release] --- app/src/main/java/io/xpipe/app/util/ScriptHelper.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/io/xpipe/app/util/ScriptHelper.java b/app/src/main/java/io/xpipe/app/util/ScriptHelper.java index f787a12e..f44ba2b0 100644 --- a/app/src/main/java/io/xpipe/app/util/ScriptHelper.java +++ b/app/src/main/java/io/xpipe/app/util/ScriptHelper.java @@ -61,26 +61,26 @@ public class ScriptHelper { var applyRcCommand = t.applyRcFileCommand(); if (applyRcCommand != null) { - content = content + nl + applyRcCommand + nl; + content += nl + applyRcCommand + nl; } // We just apply the profile files always, as we can't be sure that they definitely have been applied. // Especially if we launch something that is not the system default shell var applyProfilesCommand = t.applyProfileFilesCommand(); if (applyProfilesCommand != null) { - content = content + nl + applyProfilesCommand + nl; + content += nl + applyProfilesCommand + nl; } if (displayName != null) { - content = t.changeTitleCommand(displayName) + nl + content; + content += nl + t.changeTitleCommand(displayName) + nl; } - content += String.join(nl, init.stream().filter(s -> s != null).toList()) + nl; + content += nl + String.join(nl, init.stream().filter(s -> s != null).toList()) + nl; if (toExecuteInShell != null) { // Normalize line endings content += String.join(nl, toExecuteInShell.lines().toList()) + nl; - content += t.getExitCommand() + nl; + content += nl + t.getExitCommand() + nl; } return createExecScript(t, processControl, t.initFileName(processControl), content);