mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-24 22:14:28 +00:00
commit
f75184a963
|
@ -3,6 +3,7 @@
|
|||
. ../common-script.sh
|
||||
|
||||
removeSnaps() {
|
||||
if command_exists snap; then
|
||||
case "$PACKAGER" in
|
||||
pacman)
|
||||
"$ESCALATION_TOOL" "$PACKAGER" -Rns snapd
|
||||
|
@ -13,10 +14,7 @@ removeSnaps() {
|
|||
"$ESCALATION_TOOL" apt-mark hold snapd
|
||||
fi
|
||||
;;
|
||||
dnf)
|
||||
"$ESCALATION_TOOL" "$PACKAGER" remove snapd
|
||||
;;
|
||||
zypper)
|
||||
dnf|zypper)
|
||||
"$ESCALATION_TOOL" "$PACKAGER" remove snapd
|
||||
;;
|
||||
*)
|
||||
|
@ -24,6 +22,10 @@ removeSnaps() {
|
|||
exit 1
|
||||
;;
|
||||
esac
|
||||
printf "%b\n" "${GREEN}Successfully removed snaps.${RC}"
|
||||
else
|
||||
printf "%b\n" "${GREEN}Snapd is not installed.${RC}"
|
||||
fi
|
||||
}
|
||||
|
||||
checkEnv
|
||||
|
|
Loading…
Reference in New Issue
Block a user