16 lines
460 B
Bash
16 lines
460 B
Bash
#!/bin/bash
|
|
# Elevate script
|
|
if [ ! "$UID" -eq 0 ]
|
|
then
|
|
exec sudo bash "$0"
|
|
fi
|
|
|
|
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
|
|
|
|
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
|
|
|
|
apt update
|
|
apt install -y codium
|