Comment #10 on issue 16130 by claysmalley:  
/etc/apt/sources.list.d/google-chrome.list keeps reappearing
http://code.google.com/p/chromium/issues/detail?id=16130

Thank you. A simple shell script, just as a concept:

#!/bin/bash
repoexist1=`grep "deb http://dl.google.com/linux/deb/ stable main"
/etc/apt/sources.list.d/*`
repoexist2=`grep "deb http://dl.google.com/linux/deb/ stable main"  
/etc/apt/sources.list`
if [ "$repoexist1" = "" ]
then
     if [ "$repoexist2" = "" ]
     then
          touch /etc/apt/sources.list.d/google-chrome.list
          echo "deb http://dl.google.com/linux/deb/ stable main" >
/etc/apt/sources.list.d/google-chrome.list
     fi
fi
exit 0



--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/group/chromium-bugs
-~----------~----~----~----~------~----~------~--~---

Reply via email to