i got idea form the link (How do I write an application install shell script?) and started to wrtie script for installing software in ubunt automatically. But in case if the software does not install properly, I want my script should exit saying it does not install properly or at last it should give summary that which software does not install properly. How can I achive this?
Below is my script that I started to write:
apt-get update
apt-get install -f
for software in vim linphone linphone-common linphone-nox git dpkg-dev
do
apt-get install $software -y
done
apt-get install -f
too – Naveen Dec 01 '14 at 04:24