Conform to sibling requirements
This commit is contained in:
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user