Skip to content

Keep dev in sync with main - #3082

Merged
ivan-hc merged 8 commits into
devfrom
main
Nov 26, 2026
Merged

ivan-hc merged 8 commits into
devfrom
main

Conversation

@ivan-hc

@ivan-hc ivan-hc commented Nov 26, 2026

Copy link
Copy Markdown
Owner

No description provided.

sagarrsharmaa and others added 8 commits November 25, 2026 15:18
…3075)

_read_e takes no arguments: it prints whatever is in $prompt and stores
the answer in $results. Commit 21a7b3b turned three "read -r -p" calls
into "_read_e PROMPT VAR", which shows the previous prompt and never
sets VAR. 294e41d fixed the template-type prompt by switching it to
_read_rep; the category prompt and the binary name prompt (AppImages
built on-the-fly) were still on _read_e.

Because of that, every script made with "am -t" got Categories=Utility
whatever category you picked, a custom binary name was never applied,
and the category step showed "NAME OF THE APP" again instead of
"CHOOSE A CATEGORY". Use _read_rep for both, like 294e41d did.

Co-authored-by: Claude Opus 5.5 <[email protected]>
_read and _read_rep save the answer with eval "$var_name='$results'",
so the answer gets parsed again as shell code inside single quotes, and
any answer with a ' in it breaks. In "am -t", a description like
"It's a tool" fails with "unexpected EOF while looking for matching"
and the script is thrown away with OPERATION ABORTED, an app name like
"Bob's App" leaves Name= empty, and a one-line download command loses
its quotes. Under dash or busybox sh the same error exits the shell.

The template prompts started hitting this when 21a7b3b moved them to
_read_rep; _read has had the same line since -y support was added.

eval "$var_name=\$results" only expands the variable name and assigns
the value as it is, and it's still plain POSIX sh.
@ivan-hc
ivan-hc merged commit bc43f11 into dev Nov 26, 2026
1 check passed
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.

5 participants