allTools=(bwa mummer trimomatic)
decFlag=0;
for name in ${allTools[@]}; do
#echo "enter your package name"
# read name
dpkg -s $name &> /dev/null
if [ $? -ne 0 ]
then
echo " $name not installed :: Try installing $name with conda first"
#sudo apt-get update
#sudo apt-get install $name
decFlag=1;
else
echo " $name installed"
fi
done
if [[ $decFlag -ne 0 ]]
then
echo "Install all the missing sotware first"
exit
fi