mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Only push 1 char version, such as 7 instead of 7.0
This commit is contained in:
parent
340c0677c3
commit
416c47c121
@ -111,7 +111,7 @@ function get_pkg_id($pkg_name) {
|
||||
******/
|
||||
function get_pkg_info($pkgs = 'all', $info = 'all') {
|
||||
global $g;
|
||||
$freebsd_version = str_replace("\n", "", `uname -r | cut -d'-' -f1`);
|
||||
$freebsd_version = str_replace("\n", "", `uname -r | cut -d'-' -f1 | cut -d'.' -f1`);
|
||||
$params = array(
|
||||
"pkg" => $pkgs,
|
||||
"info" => $info,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user