Repository navigation
fix: use eval to expand mkbootimg arguments properly - #217
Merged
Merged
Conversation
Sahil-Rochlani
added a commit
to Sahil-Rochlani/KernelSU_Action
that referenced
this pull request
Dec 1, 2026
fix: use eval to expand mkbootimg arguments properly (xiaoleGun#217)
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.
问题
scripts/package.sh中make_boot_image()用裸变量展开$fmt传递 mkbootimg 参数:$fmt中若含带空格的参数值(如--cmdline "console=..."),word splitting 会把它拆成多个 token,导致 mkbootimg 解析失败。失败运行:Package artifacts 阶段由于 ValueError: Unrecognized arguments 而 mkbootimg failed
修复
用
eval重新解析整条命令,保留引号内的参数为单个 token。成功运行:fix: use eval to expand mkbootimg arguments properly #67
相关提交:5kind/KernelSU_Action@35ff4ce