diff --git a/scripts/bat.sh b/scripts/bat.sh new file mode 100644 index 0000000..3575014 --- /dev/null +++ b/scripts/bat.sh @@ -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."