addPPA fct bug fixed on search
This commit is contained in:
parent
4e0533cb24
commit
65069d9754
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue