template_setup/022-Fastfetch-Ubuntu_Repo.sh
deathbybandaid 643860d925 test
2024-05-01 21:31:16 -04:00

19 lines
498 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"
if [ get_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