diff options
author | Phil Davis <phil.davis@inf.org> | 2015-12-11 19:17:56 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2015-12-11 19:17:56 +0545 |
commit | 97bc6c7868b4e6c7c04d7328de656190251bc012 (patch) | |
tree | f7678b351d91691df929693445bd2022768e253f /tools/scripts/update_package_pfPorts.php | |
parent | 941939ee1fbf588395604f0c2805a0f3d4c30231 (diff) | |
download | pfsense-97bc6c7868b4e6c7c04d7328de656190251bc012.zip pfsense-97bc6c7868b4e6c7c04d7328de656190251bc012.tar.gz |
Random stuff in tools folder tree
White space and text or comment typos only - nothing functional.
Diffstat (limited to 'tools/scripts/update_package_pfPorts.php')
-rwxr-xr-x | tools/scripts/update_package_pfPorts.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/scripts/update_package_pfPorts.php b/tools/scripts/update_package_pfPorts.php index 7536b36..3962ae0 100755 --- a/tools/scripts/update_package_pfPorts.php +++ b/tools/scripts/update_package_pfPorts.php @@ -55,7 +55,7 @@ $opts .= "t:"; // Path to ports tree repo $options = getopt($opts); -if(!isset($options['x'])) +if (!isset($options['x'])) usage(); // Set the XML filename that we are processing @@ -85,7 +85,7 @@ if (is_dir("{$src_dir}/etc/inc")) { } $pkgs = parse_xml_config_pkg($xml_filename, "pfsensepkgs"); -if(!$pkgs) { +if (!$pkgs) { echo "!!! An error occurred while trying to process {$xml_filename}. Exiting.\n"; exit; } @@ -101,7 +101,7 @@ if (isset($options['p'])) { $pfs_version = trim(file_get_contents("{$src_dir}/etc/version")); -foreach($pkgs['packages']['package'] as $pkg) { +foreach ($pkgs['packages']['package'] as $pkg) { if (isset($pkg_list) && !in_array(strtolower($pkg['name']), $pkg_list)) continue; |