Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bugfix: Rename-Item path do not accept wildcard characters
执行安装命令会报错 ```ps Running post_install script...Rename-Item : 无法处理参数,因为参数“path”的值无效。请更改“path”参数的值,然后再次运行此操作。 所在位置 行:1 字符: 1 + Rename-Item -Path "$dir\`$_*" -NewName "$version" -Force + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (:) [Rename-Item],PSArgumentException + FullyQualifiedErrorId : Argument,Microsoft.PowerShell.Commands.RenameItemCommand ``` 查看官方 `Rename-Item` API https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/rename-item?view=powershell-7.4#-path 该函数的 `path` 不接受通配符 *该仓库中还存在相似的问题*
- Loading branch information