Conform to sibling requirements

This commit is contained in:
David Young
2026-10-20 06:21:10 -06:00
parent 7d9bdfcb35
commit b7c7b6f6e8
23 changed files with 142 additions and 297 deletions
+10
View File
@@ -64,6 +64,7 @@ echo "Removing HamPack scripts and binaries..."
rm -f ~/.local/bin/hampackrefresh
rm -f ~/.local/bin/hampackupdate
rm -f ~/.local/bin/hampackcheck
rm -f ~/.local/bin/hampackremove
rm -f ~/.local/bin/dx.py
# Uninstall not1mm
@@ -170,6 +171,15 @@ update-desktop-database "$HOME/.local/share/applications/" 2>/dev/null || true
echo "Removing HamPack state and data..."
rm -rf ~/.local/state/HamPack
rm -rf ~/.local/share/HamPack
rm -f ~/.local/share/coredesktop/updates.d/[0-9][0-9][0-9]-hampack-*
# Remove the sibling clone, so CoreDesktop's `update` stops updating HamPack
for dir in ~/.local/share/siblings/*/; do
[ -d "$dir/.git" ] || continue
if [[ "$(git -C "$dir" remote get-url origin 2>/dev/null)" =~ /[Hh]am[Pp]ack(\.git)?/?$ ]]; then
rm -rf "$dir"
fi
done
echo ""
echo "HamPack has been removed."