fix nala remove (#1038)

This commit is contained in:
Jaredy899 2025-02-28 16:21:15 -05:00 committed by GitHub
parent 24eb977fd4
commit e88020cff0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,16 +6,17 @@ removeSnaps() {
if command_exists snap; then if command_exists snap; then
case "$PACKAGER" in case "$PACKAGER" in
pacman) pacman)
"$ESCALATION_TOOL" "$PACKAGER" -Rns snapd "$ESCALATION_TOOL" "$PACKAGER" -Rns snapd --noconfirm
;; ;;
apt-get|nala) apt-get|nala)
"$ESCALATION_TOOL" "$PACKAGER" autoremove --purge snapd "$ESCALATION_TOOL" "$PACKAGER" remove --purge -y snapd
"$ESCALATION_TOOL" "$PACKAGER" autoremove -y
if [ "$ID" = ubuntu ]; then if [ "$ID" = ubuntu ]; then
"$ESCALATION_TOOL" apt-mark hold snapd "$ESCALATION_TOOL" apt-mark hold snapd
fi fi
;; ;;
dnf|zypper) dnf|zypper)
"$ESCALATION_TOOL" "$PACKAGER" remove snapd "$ESCALATION_TOOL" "$PACKAGER" remove -y snapd
;; ;;
*) *)
printf "%b\n" "${RED}Unsupported package manager: ""$PACKAGER""${RC}" printf "%b\n" "${RED}Unsupported package manager: ""$PACKAGER""${RC}"