Skip to content

Commit ed881b3

Browse files
committed
fix: empty command line part for sshpass on FreeBSD
https://www.heidisql.com/forum.php?t=45265
1 parent 67521d4 commit ed881b3

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

source/dbconnection.pas

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1061,16 +1061,14 @@ destructor TSecureShellCmd.Destroy;
10611061

10621062
class function TSecureShellCmd.SshpassPath: String;
10631063
begin
1064-
{$IFDEF DARWIN}
1064+
{$If defined(DARWIN)}
10651065
// See https://www.heidisql.com/forum.php?t=44716
10661066
Result := '/opt/homebrew/bin/sshpass';
1067-
{$ENDIF}
1068-
{$IFDEF WINDOWS}
1067+
{$ElseIf defined(WINDOWS)}
10691068
// https://github.com/xhcoding/sshpass-win32
10701069
Result := GetAppDir + 'sshpass.exe';
1071-
{$ENDIF}
1072-
{$IFDEF LINUX}
1073-
// Should be found in a known path
1070+
{$Else}
1071+
// Linux, BSD: Should be found in a known path
10741072
Result := 'sshpass';
10751073
{$ENDIF}
10761074
end;

0 commit comments

Comments
 (0)