diff --git a/script/cleanup.sh b/script/cleanup.sh index 84be29fe..d3a073a7 100644 --- a/script/cleanup.sh +++ b/script/cleanup.sh @@ -1,6 +1,7 @@ #!/bin/bash -eux SSH_USER=${SSH_USERNAME:-vagrant} +DISK_USAGE_BEFORE_CLEANUP=$(df -h) # Make sure udev does not block our network - http://6.ptmc.org/?p=164 echo "==> Cleaning up udev rules" @@ -45,8 +46,6 @@ apt-get -y autoclean echo "==> Installed packages" dpkg --get-selections | grep -v deinstall -DISK_USAGE_BEFORE_CLEANUP=$(df -h) - # Remove Bash history unset HISTFILE rm -f /root/.bash_history @@ -98,7 +97,7 @@ rm -f /EMPTY sync echo "==> Disk usage before cleanup" -echo ${DISK_USAGE_BEFORE_CLEANUP} +echo "${DISK_USAGE_BEFORE_CLEANUP}" echo "==> Disk usage after cleanup" df -h