Skip to content

Fix invalid snap refresh flag and prevent snap/flatpak errors from aborting update script#16

Closed
Copilot wants to merge 2 commits intoUpdated-scripts-and-readme-2026-Febfrom
copilot/sub-pr-8-d916c6c5-bf53-4a9c-ad62-98510f7e6052
Closed

Fix invalid snap refresh flag and prevent snap/flatpak errors from aborting update script#16
Copilot wants to merge 2 commits intoUpdated-scripts-and-readme-2026-Febfrom
copilot/sub-pr-8-d916c6c5-bf53-4a9c-ad62-98510f7e6052

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 25, 2026

snap refresh --stable is not a valid command and causes an immediate script exit due to set -e, halting all subsequent update steps including flatpak.

Changes

  • checkforupdates.sh
    • Replace snap refresh --stable with snap refresh (no such --stable flag exists)
    • Add || echo "Warning: ..." fallback to both snap refresh and flatpak upgrade so non-fatal failures emit a warning and allow the script to continue
# Before
snap refresh --stable

# After
snap refresh || echo "Warning: snap refresh encountered an error, continuing..."
flatpak upgrade --assumeyes || echo "Warning: flatpak upgrade encountered an error, continuing..."

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

…orting script

Co-authored-by: andreak3779 <11012375+andreak3779@users.noreply.github.com>
Copilot AI changed the title [WIP] Update shell configuration instructions in README Fix invalid snap refresh flag and prevent snap/flatpak errors from aborting update script 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