19 lines
498 B
Bash
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
|