Skip to content

Commit

Permalink
feat(glow)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ant0wan committed Oct 23, 2024
1 parent 0fe1f7c commit 6040bbb
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions scripts/glow.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/sh
if [ -f /etc/fedora-release ]; then
echo '[charm]
name=Charm
baseurl=https://repo.charm.sh/yum/
enabled=1
gpgcheck=1
gpgkey=https://repo.charm.sh/yum/gpg.key' | sudo tee /etc/yum.repos.d/charm.repo
sudo yum install glow
elif [ -f /etc/lsb-release ] || [ -f /etc/os-release ] ; then
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://repo.charm.sh/apt/gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/charm.gpg
echo "deb [signed-by=/etc/apt/keyrings/charm.gpg] https://repo.charm.sh/apt/ * *" | sudo tee /etc/apt/sources.list.d/charm.list
sudo apt update && sudo apt install glow
else
echo "Unsupported distribution. This script only supports Fedora and Ubuntu."
exit 1
fi
echo "Glow has been successfully installed."

0 comments on commit 6040bbb

Please sign in to comment.