Allow Multiple Digit Version Revisions

This commit is contained in:
Keith Lamprecht 2021-08-11 08:57:06 -04:00 committed by GitHub
parent b8c0ff0ebf
commit c7a5f882fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,6 @@
<?php
$plg_path = '/boot/config/plugins/NerdPack/'; // plugin path
$os_version = substr(parse_ini_file('/etc/unraid-version')['version'],0,3);
$os_version = strtok(parse_ini_file('/etc/unraid-version')['version'], '.') . '.' . strtok('.');
$pkg_path = $plg_path."packages/$os_version/"; // package path
if (!is_dir($pkg_path))
mkdir($pkg_path);