Skip to content

Fix invalid snap refresh flag and prevent snap/flatpak failures from aborting update script#15

Closed
Copilot wants to merge 2 commits intoUpdated-scripts-and-readme-2026-Febfrom
copilot/sub-pr-8-please-work
Closed

Fix invalid snap refresh flag and prevent snap/flatpak failures from aborting update script#15
Copilot wants to merge 2 commits intoUpdated-scripts-and-readme-2026-Febfrom
copilot/sub-pr-8-please-work

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 25, 2026

snap refresh --stable is not a valid flag and causes an immediate failure; with set -e active, this aborts the entire script before Flatpak updates or the completion message run.

Changes

  • checkforupdates.sh
    • Replace snap refresh --stable with snap refresh
    • Add || echo "Warning: ..." to both snap refresh and flatpak upgrade so failures in either are non-fatal under set -e
# Before
snap refresh --stable
flatpak upgrade --assumeyes

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

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: andreak3779 <11012375+andreak3779@users.noreply.github.com>
Copilot AI changed the title [WIP] Update shell configuration instructions based on feedback Fix invalid snap refresh flag and prevent snap/flatpak failures 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