template_setup/022-Fastfetch_Ubuntu_Repo.sh
deathbybandaid 99a4463433 test
2024-05-01 22:00:42 -04:00

20 lines
518 B
Bash

#!/bin/bash
## Script Location
SCRIPTDIR=$(dirname $0)
source "$SCRIPTDIR/common/colors.sh"
source "$SCRIPTDIR/common/functions.sh"
source "$SCRIPTDIR/common/load-defaults.sh"
distro=$( get_distro )
if [ $distro == *"Ubuntu"* ]
then
ppa_added=`grep ^ /etc/apt/sources.list /etc/apt/sources.list.d/* | grep -v list.save | grep -v deb-src | grep deb | grep fastfetch | wc -l`
if $ppa_added
then
echo "fastfetch ppa already installed"
else
sudo add-apt-repository ppa:zhangsongcui3371/fastfetch
fi
fi