fix snap.sh

This commit is contained in:
Anthony Axenov 2022-01-09 17:20:25 +08:00
parent cd0dc9d988
commit 7102cb38dc
Signed by: anthony
GPG Key ID: EA9EC32FF7CCD4EC

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
echo echo
echo "===============================================" echo "==============================================="
echo "Installing flatpak and its software..." echo "Installing snap and its software..."
echo "===============================================" echo "==============================================="
echo echo
@ -14,7 +14,7 @@ snapi() {
[[ $? -ne 0 ]] && snap install $1 --classic [[ $? -ne 0 ]] && snap install $1 --classic
} }
if !installed snapd; then if ! installed snapd; then
sudo apt update sudo apt update
sudo apt install -y --autoremove snapd gnome-software-plugin-snap sudo apt install -y --autoremove snapd gnome-software-plugin-snap
fi fi