Skip to content

Fix snap refresh flag, printf format strings, and use ~/.profile in README#20

Closed
Copilot wants to merge 2 commits intoUpdated-scripts-and-readme-2026-Febfrom
copilot/sub-pr-8-9408c2f3-f495-4eae-b926-347c9b01ba62
Closed

Fix snap refresh flag, printf format strings, and use ~/.profile in README#20
Copilot wants to merge 2 commits intoUpdated-scripts-and-readme-2026-Febfrom
copilot/sub-pr-8-9408c2f3-f495-4eae-b926-347c9b01ba62

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 25, 2026

Three correctness issues across the scripts and README: invalid snap refresh --stable flag aborts the entire script under set -e, printf calls pass variables as format strings (unsafe with % characters), and README Option B still referenced ~/.bash_profile instead of ~/.profile.

Changes

  • checkforupdates.sh

    • Remove invalid --stable flag from snap refresh
    • Add || echo "..." fallback on snap/flatpak refresh so failures don't abort the script under set -e
  • showhardware.sh

    • Replace printf "$HEADER..." with printf "%b" "$HEADER..." across all section headers — fixes both unsafe format-string usage and \n not being interpreted
  • README.md

    • Update Option B installation and uninstall sections to reference ~/.profile instead of ~/.bash_profile

💡 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.

…n README

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 use ~/.profile in README 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