Skip to content

Commit 745c2a9

Browse files
committed
Bug Fix: calling cd in SSH multiple times was broken, as it wasn't prefixing layered calls
1 parent 0c9f74a commit 745c2a9

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

Background-Terminal-Setup/Product.wxs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
33
<?include $(sys.CURRENTDIR)\Config.wxi?>
4-
<Product Id="*" Name="$(var.ProductName)" Language="1033" Version="1.2.2.0" Manufacturer="shaneduffy.io" UpgradeCode="983054b1-dfd7-4147-b5cc-fc703cefcc1c">
4+
<Product Id="*" Name="$(var.ProductName)" Language="1033" Version="1.2.3.0" Manufacturer="shaneduffy.io" UpgradeCode="983054b1-dfd7-4147-b5cc-fc703cefcc1c">
55
<Package InstallerVersion="200" InstallPrivileges="elevated" Compressed="yes" InstallScope="perMachine" Description="$(var.ProductName)"/>
66

77
<MajorUpgrade DowngradeErrorMessage="A newer version of Background Terminal is already installed." />

Background-Terminal/Background-Terminal.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<UseWPF>true</UseWPF>
88
<ApplicationIcon>background-terminal.ico</ApplicationIcon>
99
<Platforms>x86;x64</Platforms>
10-
<Version>1.2.2</Version>
10+
<Version>1.2.3</Version>
1111
</PropertyGroup>
1212

1313
<ItemGroup>

Background-Terminal/MainWindow.xaml.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -405,16 +405,14 @@ private void SendCommandBGT(string command)
405405

406406
private void SendCommand(string command)
407407
{
408-
409-
410408
// Handle SSH mode
411409
if (_sshMode)
412410
{
413411
_terminalData.Add(DirectoryPrefixCommand(command));
414412
SendCommandSSH(DirectoryPrefixCommand(command));
415413

416414
if (command.ToLower().StartsWith("cd"))
417-
_sshCurrentDirectory = SendCommandSSH(command + " && pwd", true);
415+
_sshCurrentDirectory = SendCommandSSH(DirectoryPrefixCommand(command) + " && pwd", true);
418416
}
419417

420418
// Background-Terminal application commands

0 commit comments

Comments
 (0)