diskimage-builder/diskimage_builder/elements/dpkg/finalise.d/99-clean-up-cache

13 lines
216 B
Text
Raw Normal View History

#!/bin/bash
# Do an apt-get clean. This will free some space.
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
set -x
fi
set -eu
set -o pipefail
if [ "${DIB_DISABLE_APT_CLEANUP:-0}" != "1" ]; then
apt-get clean
fi