diff --git a/core_functions.sh b/core_functions.sh index 3aa711a..02c17f2 100644 --- a/core_functions.sh +++ b/core_functions.sh @@ -237,7 +237,11 @@ function updateSystem () { function addPPA () { typeset ret_code - if ! grep ^ /etc/apt/sources.list /etc/apt/sources.list.d/* | grep -q $*; then + prefix="ppa:" + str="$*" + str2search=${str#$prefix} + + if ! grep ^ /etc/apt/sources.list /etc/apt/sources.list.d/* | grep -q ${str2search}; then printf "[PPA] adding : $* " printf "\n[PPA] adding $*\n" &>> $logFile sudo add-apt-repository -y $* &>> $logFile