- - if test -e /usr/bin/apt-get ; then sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.7 50 ; fi
- - if test -e /usr/bin/apt-get ; then sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.7 50 ; fi
+ - if test -e /usr/bin/apt-get -a -e /usr/bin/gcc-4.7 ; then sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.7 50 ; fi
+ - if test -e /usr/bin/apt-get -a -e /usr/bin/g++-4.7 ; then sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.7 50 ; fi