Skip to content

Fix snap refresh flag, printf format strings, and README profile option#18

Closed
Copilot wants to merge 2 commits intoUpdated-scripts-and-readme-2026-Febfrom
copilot/sub-pr-8-6c7c64fb-73d8-4def-a423-ba00c79f6684
Closed

Fix snap refresh flag, printf format strings, and README profile option#18
Copilot wants to merge 2 commits intoUpdated-scripts-and-readme-2026-Febfrom
copilot/sub-pr-8-6c7c64fb-73d8-4def-a423-ba00c79f6684

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 25, 2026

Three bugs from the prior review: invalid snap flag aborts the update script under set -e, printf uses variables as format strings, and README Option B references the wrong shell profile file.

checkforupdates.sh

  • snap refresh --stablesnap refresh (--stable is not a valid flag; caused immediate script abort under set -e)
  • Added || true to both snap refresh and flatpak upgrade so non-critical refresh failures don't abort the update run

showhardware.sh

  • Changed printf "$HEADER ... $FOOTER"printf "%b" "$HEADER ... $FOOTER" across all calls to avoid format string injection if % sequences appear in the variables

README.md

  • Option B: ~/.bash_profile~/.profile for Debian/Ubuntu/Zorin OS compatibility (these distros source ~/.profile, not ~/.bash_profile, for login shells by default)

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: andreak3779 <11012375+andreak3779@users.noreply.github.com>
Copilot AI changed the title [WIP] Update shell configuration instructions in README Fix snap refresh flag, printf format strings, and README profile option Feb 25, 2026
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.

2 participants