Skip to content

Commit ddbce69

Browse files
author
David Barnes
committed
Remove double spaces from pkill command
1 parent ca975d5 commit ddbce69

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: src/Jobs/CreateTunnel.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ protected function verifyTunnel()
106106
*/
107107

108108
public function destoryTunnel(){
109-
return $this->runCommand('pkill -f "'.$this->sshCommand.'"');
109+
$ssh_command = preg_replace('/[\s]{2}[\s]*/',' ',$this->sshCommand);
110+
return $this->runCommand('pkill -f "'.$ssh_command.'"');
110111
}
111112

112113
/**

0 commit comments

Comments
 (0)