Do not carriage return in the middle of a shell command

This commit is contained in:
Scott Ullrich 2007-04-18 19:49:59 +00:00
parent 4e3cb6c616
commit d57e19dce5

View File

@ -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;
}