Repository navigation
Conversation
…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.
Co-authored-by: web-flow <[email protected]>
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.
No description provided.