Skip to content

fix(setup): shell-quote saved config values - #57

Merged
noctuum merged 1 commit into
mainfrom
fix/setup-config-quoting
Oct 21, 2026
Merged

noctuum merged 1 commit into
mainfrom
fix/setup-config-quoting

Conversation

@noctuum

@noctuum noctuum commented Oct 21, 2026

Copy link
Copy Markdown
Member

save_config wrote each value inside double quotes, and load_config in setup.sh and lib.sh sources the file. A ", $ or backtick in a value ran as shell on the next run of setup.sh, update-pkg.sh or publish-pkg.sh, and a $name under set -u stopped that run with unbound variable. The values are now written with ${var@Q}, so they come back unchanged. A config written by an older version still loads.

bats tests/ --recursive: 489 pass. shellcheck, shfmt and actionlint are clean.

@codecov

codecov Bot commented Oct 21, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 80.00000% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
scripts/setup.sh 80.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@noctuum
noctuum merged commit 47e0795 into main Oct 21, 2026
5 checks passed
@noctuum
noctuum deleted the fix/setup-config-quoting branch October 21, 2026 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant