qrencode: Fix installation for PowerShell 5 (#4285)

This commit is contained in:
sitiom 2022-12-28 21:30:44 +08:00 committed by GitHub
parent 0ea2198181
commit 3dba39f770
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,11 +43,11 @@
" \"$dir\\share\\licenses\\qrencode\\COPYING\",",
" \"$dir\\share\\man\\man1\\qrencode.1.gz\")",
"",
"Get-ChildItem \"$dir\" -Recurse",
" | Select-Object -ExpandProperty FullName",
" | Where-Object {$keep_files -notcontains $_ }",
" | Sort-Object Length -Descending",
" | ForEach-Object { if ((Test-Path $_ -Type Container) -and (Get-ChildItem $_)) { return } Remove-Item $_ }"
"Get-ChildItem \"$dir\" -Recurse |",
" Select-Object -ExpandProperty FullName |",
" Where-Object {$keep_files -notcontains $_ } |",
" Sort-Object Length -Descending |",
" ForEach-Object { if ((Test-Path $_ -Type Container) -and (Get-ChildItem $_)) { return } Remove-Item $_ }"
],
"bin": "bin\\qrencode.exe",
"checkver": {