Commit 851bcf84 authored by Franco Fichtner's avatar Franco Fichtner

scripts: small fixes

parent 76eaa335
......@@ -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');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment