Skip to content

Commit

Permalink
Revert package install to original
Browse files Browse the repository at this point in the history
  • Loading branch information
cristovaov committed Jul 20, 2015
1 parent a21fdaa commit 9b90a3d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions provision/provision.sh
Expand Up @@ -160,9 +160,12 @@ package_check() {
for pkg in "${apt_package_check_list[@]}"; do
package_version=$(dpkg -s "${pkg}" 2>&1 | grep 'Version:' | cut -d " " -f 2)
if [[ -n "${package_version}" ]]; then
printf "[installed] %s -- %s \n" "${pkg}" "${package_version}"
space_count="$(expr 20 - "${#pkg}")" #11
pack_space_count="$(expr 30 - "${#package_version}")"
real_space="$(expr ${space_count} + ${pack_space_count} + ${#package_version})"
printf " * $pkg %${real_space}.${#package_version}s ${package_version}\n"
else
printf "[not_installed] %s\n" "${pkg}"
echo " *" $pkg [not installed]
apt_package_install_list+=($pkg)
fi
done
Expand Down

0 comments on commit 9b90a3d

Please sign in to comment.