bugfix: Rename-Item path do not accept wildcard characters#143
Merged
ivaquero merged 1 commit intoScoopforge:masterfrom Dec 18, 2024
idhyt:master
Merged
bugfix: Rename-Item path do not accept wildcard characters#143ivaquero merged 1 commit intoScoopforge:masterfrom idhyt:master
ivaquero merged 1 commit intoScoopforge:masterfrom
idhyt:master
Conversation
执行安装命令会报错
```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` 不接受通配符
*该仓库中还存在相似的问题*
Collaborator
|
你想做管理员么?我可以加你 |
Contributor
Author
|
感谢你的邀请,但是我可能没有太多时间来维护开源项目,不过我已经关注这个仓库并加入到我的bucket使用,后续有问题我会第一时间来提PR 🍻 |
Collaborator
|
行,有意向随时告诉我,这个仓库不大,涉及的脚本不多,不需要担心维护负担。 |
ivaquero
pushed a commit
that referenced
this pull request
Dec 18, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
执行安装命令会报错
查看官方
Rename-ItemAPIhttps://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/rename-item?view=powershell-7.4#-path
该函数的
path不接受通配符该仓库中还存在相似的问题