identaciós e comentarios

This commit is contained in:
serxoz 2024-11-08 11:53:04 +01:00
parent f43302b34f
commit 794eca0a37

View File

@ -10,14 +10,14 @@ echo ""
# Asegurarse de que existe Firefox en apt e non en snap # Asegurarse de que existe Firefox en apt e non en snap
apt_firefox () { apt_firefox () {
# existe snap? # existe snap?
if snp=$(which snap); then if snp=$(which snap); then
$snp list firefox $snp list firefox
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
$snp remove --purge firefox # probablemente estamos en Ubuntu, quitase do snap
$snp remove --purge firefox
# estamos en ubuntu, agregase repo de mozilla # agregase repo de mozilla
add-apt-repository -y ppa:mozillateam/ppa add-apt-repository -y ppa:mozillateam/ppa
if [ ! -f /etc/apt/preferences.d/mozilla-firefox ]; then if [ ! -f /etc/apt/preferences.d/mozilla-firefox ]; then