Skip to content

Commit

Permalink
Fixed: Fixed build error from using the old env variable system.
Browse files Browse the repository at this point in the history
  • Loading branch information
tareksander committed Mar 26, 2024
1 parent b1fe382 commit ecf4f4a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/src/main/java/com/termux/app/plugin/PluginService.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
import com.termux.shared.shell.command.ExecutionCommand;
import com.termux.shared.shell.command.runner.nativerunner.NativeShell;
import com.termux.shared.termux.plugins.TermuxPluginUtils;
import com.termux.shared.termux.shell.TermuxShellEnvironmentClient;
import com.termux.shared.termux.shell.command.environment.TermuxShellEnvironment;

import java.io.File;
import java.io.FileNotFoundException;
Expand Down Expand Up @@ -330,10 +330,10 @@ public Task runTask(String commandPath, String[] arguments, ParcelFileDescriptor


List<String> env = (environment != null) ? Arrays.asList(environment) : new ArrayList<>();
env.addAll(Arrays.asList(new TermuxShellEnvironmentClient().
buildEnvironment(PluginService.this,
false,
workdir)));
Map<String, String> termuxEnv = new TermuxShellEnvironment().getEnvironment(PluginService.this, false);
for (Map.Entry<String, String> evar : termuxEnv.entrySet()) {
env.add(evar.getKey()+"="+evar.getValue());
}
String[] realEnvironment = env.toArray(new String[0]);


Expand Down

0 comments on commit ecf4f4a

Please sign in to comment.