mirror of
https://github.com/cmderdev/cmder.git
synced 2026-04-14 22:04:32 +08:00
fix: Derive directories from the array entries
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
7
.github/workflows/tests.yml
vendored
7
.github/workflows/tests.yml
vendored
@@ -79,8 +79,11 @@ jobs:
|
|||||||
# Get vendor versions from sources.json
|
# Get vendor versions from sources.json
|
||||||
$vendorInfo = @()
|
$vendorInfo = @()
|
||||||
$sources = Get-Content "vendor\sources.json" -Raw | ConvertFrom-Json
|
$sources = Get-Content "vendor\sources.json" -Raw | ConvertFrom-Json
|
||||||
$vendorDirs = $sources.PSObject.Properties | ForEach-Object { $_.Name }
|
foreach ($source in $sources) {
|
||||||
foreach ($dir in $vendorDirs) {
|
$dir = $source.name
|
||||||
|
if (-not $dir) {
|
||||||
|
continue
|
||||||
|
}
|
||||||
$versionFile = "vendor/$dir/.cmderver"
|
$versionFile = "vendor/$dir/.cmderver"
|
||||||
if (Test-Path $versionFile) {
|
if (Test-Path $versionFile) {
|
||||||
$version = Get-Content $versionFile -Raw
|
$version = Get-Content $versionFile -Raw
|
||||||
|
|||||||
Reference in New Issue
Block a user