VSCodium fix configured multiple times apt error

pull/306/head
Botspot 4 years ago
parent f99b75fd46
commit b8711afa58

@ -8,6 +8,6 @@ function error {
}
wget -qO - https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/master/pub.gpg | gpg --dearmor | sudo dd of=/etc/apt/trusted.gpg.d/vscodium.gpg
echo 'deb https://paulcarroty.gitlab.io/vscodium-deb-rpm-repo/debs/ vscodium main' | sudo tee --append /etc/apt/sources.list.d/vscodium.list
sudo bash -c "echo 'deb https://paulcarroty.gitlab.io/vscodium-deb-rpm-repo/debs/ vscodium main' > /etc/apt/sources.list.d/vscodium.list"
sudo apt update || error "Failed to run sudo apt update!"
sudo apt install codium -y || error "Failed to install codium package!"

@ -9,4 +9,4 @@ function error {
sudo apt purge codium -y
sudo rm /etc/apt/trusted.gpg.d/vscodium.gpg
sudo rm /etc/apt/sources.list.d/vscodium.list
sudo rm /etc/apt/sources.list.d/vscodium.list

Loading…
Cancel
Save