PortValhalla/scripts/PopOS/software/codium.sh

17 lines
497 B
Bash
Raw Normal View History

2022-11-12 02:45:41 +00:00
#!/bin/bash
# Elevate script
if [ ! "$UID" -eq 0 ]
then
2022-11-13 00:11:32 +00:00
sudo bash "$BASH_SOURCE"
else
wget -qO - https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/master/pub.gpg \
| gpg --dearmor \
| dd of=/usr/share/keyrings/vscodium-archive-keyring.gpg
2022-11-12 02:45:41 +00:00
2022-11-13 00:11:32 +00:00
echo 'deb [ signed-by=/usr/share/keyrings/vscodium-archive-keyring.gpg ] https://download.vscodium.com/debs vscodium main' \
| tee /etc/apt/sources.list.d/vscodium.list
2022-11-12 02:45:41 +00:00
2022-11-13 00:11:32 +00:00
apt update
apt install -y codium
fi