Unstick plugins lazy.nvim won't update, and move to Thunderbird ESR
shellcheck / shellcheck (push) Failing after 17s

An interrupted plugin update can leave a plugin's files out of step with
its checkout, and lazy.nvim then refuses to update it, every time. Before
syncing, update now stashes such changes, so they can still be recovered
with git stash pop, and puts the plugin's submodules back.

Flathub retired org.mozilla.Thunderbird in favor of
org.mozilla.thunderbird_esr, so update tried to reinstall the old ID on
every run. Install the new one. flatpak update already moves existing
installs over; a migration carries a skip-packages entry for the old ID
over to the new one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-08 10:51:49 -07:00
co-authored by Claude Opus 5.5
parent ee7451600b
commit c8b2f8473d
5 changed files with 122 additions and 2 deletions
+13
View File
@@ -0,0 +1,13 @@
#!/bin/bash
# Flathub retired org.mozilla.Thunderbird in favor of org.mozilla.thunderbird_esr,
# and flatpak update moves existing installs over itself. A skip-packages entry
# for the old ID would no longer keep Thunderbird from being installed, so
# carry it over to the new one.
SKIP_PACKAGES="$HOME/.config/coredesktop/skip-packages"
[ -f "$SKIP_PACKAGES" ] || exit 0
grep -qE '^org\.mozilla\.Thunderbird([[:space:]]|$)' "$SKIP_PACKAGES" || exit 0
grep -qE '^org\.mozilla\.thunderbird_esr([[:space:]]|$)' "$SKIP_PACKAGES" && exit 0
# Start a new line if the file doesn't end with one
[ -n "$(tail -c 1 "$SKIP_PACKAGES")" ] && echo >> "$SKIP_PACKAGES"
echo "org.mozilla.thunderbird_esr" >> "$SKIP_PACKAGES"