mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Do not carriage return in the middle of a shell command
This commit is contained in:
parent
4e3cb6c616
commit
d57e19dce5
@ -1288,8 +1288,7 @@ function find_interface_ip($interface, $flush = false) {
|
||||
}
|
||||
|
||||
function guess_interface_from_ip($ipaddress) {
|
||||
$ret = exec_command("/sbin/route -n get {$ipaddress} | /usr/bin/grep interface | /usr/bin/awk '{ print \$2
|
||||
; };'");
|
||||
$ret = exec_command("/sbin/route -n get {$ipaddress} | /usr/bin/grep interface | /usr/bin/awk '{ print \$2; };'");
|
||||
return $ret;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user