mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 08:09:41 +00:00
scripts: small fixes
This commit is contained in:
parent
76eaa33516
commit
851bcf8428
@ -30,11 +30,11 @@
|
||||
$pkg_mirror = 'http://pkg.opnsense.org';
|
||||
$pkg_flavour = 'latest';
|
||||
|
||||
if (isset($argv[1])) {
|
||||
if (count($argv) > 1) {
|
||||
$pkg_flavour = $argv[1];
|
||||
}
|
||||
if (isset($argv[2])) {
|
||||
$pkg_flavour = $argv[2];
|
||||
if (count($argv) > 2) {
|
||||
$pkg_mirror = $argv[2];
|
||||
}
|
||||
|
||||
$pkg_sample = file_get_contents('/usr/local/etc/pkg/repos/OPNsense.conf.sample');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user