From 4bf42831f344802fc844c4fa2259be8f26738560 Mon Sep 17 00:00:00 2001 From: crschnick Date: Thu, 11 May 2023 10:14:51 +0000 Subject: [PATCH] Exclusively use rc or profile file --- 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 dc25578b2..82c304776 100644 --- a/app/src/main/java/io/xpipe/app/util/ScriptHelper.java +++ b/app/src/main/java/io/xpipe/app/util/ScriptHelper.java @@ -53,11 +53,11 @@ public class ScriptHelper { if (applyProfilesCommand != null) { content = applyProfilesCommand + "\n" + content; } - } - - var applyRcCommand = t.applyRcFileCommand(); - if (applyRcCommand != null) { - content = applyRcCommand + "\n" + content; + } else { + var applyRcCommand = t.applyRcFileCommand(); + if (applyRcCommand != null) { + content = applyRcCommand + "\n" + content; + } } if (toExecuteInShell != null) {