mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-11-27 18:11:20 +00:00
Update afterInstall.ps1
Co-authored-by: qodo-merge-pro[bot] <151058649+qodo-merge-pro[bot]@users.noreply.github.com>
This commit is contained in:
parent
ef966dfe1d
commit
f2f16d7488
|
|
@ -116,7 +116,7 @@ function Extract-CompressedFile {
|
||||||
if ($entries.Count -eq 1 -and $entries[0].PSIsContainer) {
|
if ($entries.Count -eq 1 -and $entries[0].PSIsContainer) {
|
||||||
# Single root directory inside archive -> flatten
|
# Single root directory inside archive -> flatten
|
||||||
Write-Host "[*] Archive has a single root directory. Flattening..."
|
Write-Host "[*] Archive has a single root directory. Flattening..."
|
||||||
$innerItems = Get-ChildItem -LiteralPath $entries[0].FullName
|
$innerItems = Get-ChildItem -LiteralPath $entries[0].FullName -Force
|
||||||
foreach ($item in $innerItems) {
|
foreach ($item in $innerItems) {
|
||||||
Move-Item -LiteralPath $item.FullName -Destination $DestinationDirectory -Force
|
Move-Item -LiteralPath $item.FullName -Destination $DestinationDirectory -Force
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user