fix(run): quote GAME when writing run.conf #415
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/lobomfz--VIctory-xmem!415
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-415"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Luxuride on GitHub · 2026-12-04 01:43 UTC · original
Luxuride:fix/run-conf-game-quoting→main· +1 −1 · 1 files · 1 commits · merged 2026-12-04 03:41 UTCWhat
First-run setup writes the answer into
run.confasrun.confissourced byenv.sh:2,run.sh:120-124,build.sh:3andsetup.sh:7. A dump path containing a space therefore becomes a word split:GAME=/mnt/d/My Dumpsources as an assignment plus the commandDump, which fails withDump: command not found(exit 127), leavesGAMEempty, and abortssetup.sh/build.shunderset -euo pipefail. Any shell metacharacter in the path is worse.One line, using
printf %q, which is what makes the value re-sourceable:Validation
Same
set -euo pipefailshell both times. The menu's "Save run.conf" (apps/victorypanel) copies lines verbatim, so it keeps working.Overlap check
Not in any open PR or issue: no open PR contains a change to this line or to how
run.confis sourced.