Skip to content

Commit

Permalink
Merge pull request boxcutter#96 from nedbat/fix-df-display
Browse files Browse the repository at this point in the history
Fix the display of df results
  • Loading branch information
annawake authored Dec 11, 2016
2 parents 711581f + 3f9111b commit dfc5dca
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions script/cleanup.sh
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit dfc5dca

Please sign in to comment.