column=`tput cols`
column=$(($column-10))
isInstalled=1
if [[ -z $isInstalled ]]; then
printf “%${column}s[ $(echo -en “\033[1;31m”)FAILED$(echo -en “\033[0m”) ]\r$i\n”
else
printf “%${column}s[ $(echo -en “\033[1;32m”)PASSED$(echo -en “\033[0m”) ]\r$i\n”
fi