Skip to content

snagrecover: fix am335x cleanup option silently dropping "Done" message#89

Merged
rgantois merged 1 commit into
mainfrom
dev/tprrt/fix-am335x-cleanup-option
Apr 27, 2026
Merged

snagrecover: fix am335x cleanup option silently dropping "Done" message#89
rgantois merged 1 commit into
mainfrom
dev/tprrt/fix-am335x-cleanup-option

Conversation

@tprrt
Copy link
Copy Markdown
Contributor

@tprrt tprrt commented Apr 24, 2026

In the -c (cleanup) getopts branch, echo "Done" was passed as an argument to cleanup() instead of running as a separate command. The missing semicolon caused the message to never be printed.

Copilot AI review requested due to automatic review settings April 24, 2026 07:48
@tprrt tprrt changed the title snagrecover: fix cleanup option silently dropping "Done" message snagrecover: fix am335x cleanup option silently dropping "Done" message Apr 24, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes the -c (cleanup) option path in am335x_usb_setup.sh so the "Done" message is printed correctly after running cleanup, rather than being passed as an argument to cleanup().

Changes:

  • Separate cleanup invocation from echo "Done" in the -c option handler to ensure the message is printed.
  • Minor shell control-flow adjustment via the added command separator.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/snagrecover/am335x_usb_setup.sh Outdated
Comment thread src/snagrecover/am335x_usb_setup.sh Outdated
In the -c (cleanup) getopts branch, `echo "Done"` was passed as an
argument to cleanup() instead of running as a separate command. The
missing semicolon caused the message to never be printed.

Signed-off-by: Thomas Perrot <thomas.perrot@bootlin.com>
@tprrt tprrt force-pushed the dev/tprrt/fix-am335x-cleanup-option branch from 190b7c4 to c20846a Compare April 27, 2026 09:36
@rgantois
Copy link
Copy Markdown
Collaborator

Thanks

@rgantois rgantois merged commit 5eff0fa into main Apr 27, 2026
18 of 22 checks 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.

3 participants