Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions core/tabs/system-setup/remove-snaps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,17 @@ removeSnaps() {
if command_exists snap; then
case "$PACKAGER" in
pacman)
"$ESCALATION_TOOL" "$PACKAGER" -Rns snapd
"$ESCALATION_TOOL" "$PACKAGER" -Rns snapd --noconfirm
;;
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
"$ESCALATION_TOOL" apt-mark hold snapd
fi
;;
dnf|zypper)
"$ESCALATION_TOOL" "$PACKAGER" remove snapd
"$ESCALATION_TOOL" "$PACKAGER" remove -y snapd
;;
*)
printf "%b\n" "${RED}Unsupported package manager: ""$PACKAGER""${RC}"
Expand Down