[skip ci] add task to remove snap firefox
This commit is contained in:
parent
477b8fd65c
commit
d59154ddf6
1 changed files with 6 additions and 3 deletions
|
@ -13,9 +13,12 @@ fun Prov.installFirefox() = task {
|
||||||
|
|
||||||
// inspired by: https://www.omgubuntu.co.uk/2022/04/how-to-install-firefox-deb-apt-ubuntu-22-04
|
// inspired by: https://www.omgubuntu.co.uk/2022/04/how-to-install-firefox-deb-apt-ubuntu-22-04
|
||||||
|
|
||||||
|
task("remove snap firefox") {
|
||||||
if (chk("snap list | grep firefox")) {
|
if (chk("snap list | grep firefox")) {
|
||||||
cmd("snap remove firefox", sudo = true)
|
cmd("snap remove firefox", sudo = true)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
aptInstall("software-properties-common")
|
aptInstall("software-properties-common")
|
||||||
cmd("add-apt-repository -y ppa:mozillateam/ppa", sudo = true)
|
cmd("add-apt-repository -y ppa:mozillateam/ppa", sudo = true)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue