Update for fedora atomic

This commit is contained in:
askiiart 2024-07-10 13:21:06 -05:00
parent 46cdfbe486
commit e8242b0ad0
Signed by untrusted user who does not match committer: askiiart
GPG key ID: EA85979611654C30
13 changed files with 99 additions and 15 deletions

View file

@ -20,6 +20,12 @@ elif command_exists "dnf"; then
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
sudo sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/vscode.repo'
sudo dnf install code -y
elif command_exists "rpm-ostree" && ! command_exists "code"; then
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --import
sudo sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/vscode.repo'
rpm-ostree install code -y
read -p "Press enter to reboot, then run do-everything.bash again"
reboot
elif command_exists "yay"; then
yay -S visual-studio-code-bin clang-format-static-bin --noconfirm --needed
elif command_exists "zypp"; then