~lynx333/cairo-dock-plug-ins-extras/HDDtemperature

« back to all changes in this revision

Viewing changes to dependences_deb.sh

  • Committer: matttbe
  • Date: 2010-04-03 12:14:08 UTC
  • Revision ID: matttbe@gmail.com-20100403121408-mxu3vv03h11t5il6
dependences_deb: strange, the old method didn't work everywhere

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
LOG_CD=../log.txt
11
11
 
12
12
install_pkg() {
13
 
        for tested in $NEEDED_EXTRAS; do
14
 
                dpkg -s $tested |grep installed |grep "install ok" > /dev/null
15
 
                if [ $? -eq 1 ]; then
16
 
                        sudo apt-get install -qq $tested  >> $LOG_CD
17
 
                fi
18
 
        done
 
13
#       for tested in $NEEDED_EXTRAS; do
 
14
#               dpkg -s $tested |grep installed |grep "install ok" > /dev/null
 
15
#               if [ $? -eq 1 ]; then
 
16
#                       sudo apt-get install -qq $tested  >> $LOG_CD
 
17
#               fi
 
18
#       done
 
19
        sudo apt-get install -qq -y --force-yes $NEEDED_EXTRAS  >> $LOG_CD
19
20
}
20
21
 
21
22
install_pkg >> $LOG_CD