Skip to content

Commit

Permalink
feat(bat): install
Browse files Browse the repository at this point in the history
  • Loading branch information
Ant0wan committed Nov 4, 2024
1 parent d1b340a commit 65ccd9c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions scripts/bat.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh
if [ -f /etc/fedora-release ]; then
sudo dnf install -y bat
elif [ -f /etc/lsb-release ] || [ -f /etc/os-release ] ; then
sudo apt-get update
sudo apt-get install -y bat
else
echo "Unsupported distribution. This script only supports Fedora and Ubuntu."
exit 1
fi
echo "Bat has been successfully installed."

0 comments on commit 65ccd9c

Please sign in to comment.