#!/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 if [ -d /etc/apt/apt.conf.d ] 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