PortValhalla/scripts/Debian/Software/VSCodium/install.sh

17 lines
502 B
Bash
Raw Normal View History

2022-11-12 02:45:41 +00:00
#!/bin/bash
# Elevate script
if [ ! "$UID" -eq 0 ]
then
sudo bash "$BASH_SOURCE";
2022-11-13 00:11:32 +00:00
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
apt update;
apt install -y codium;
2022-11-13 00:11:32 +00:00
fi