diff options
Diffstat (limited to 'hooks')
-rwxr-xr-x | hooks/mini | 12 | ||||
-rwxr-xr-x | hooks/minimal | 12 |
2 files changed, 18 insertions, 6 deletions
diff --git a/hooks/mini b/hooks/mini index 14f942a2f..c074fe71b 100755 --- a/hooks/mini +++ b/hooks/mini @@ -10,9 +10,15 @@ set -e # Removing unused packages -apt-get remove --purge --yes apt-utils aptitude -apt-get remove --purge --yes man-db manpages info -apt-get remove --purge --yes ssl wget +for PACKAGE in apt-utils aptitude man-db manpages info ssl wget +do + if ! apt-get remove --purge --yes "${PACKAGE}" + then + echo "WARNING: ${PACKAGE} isn't installed" + fi +done + +apt-get autoremove || true # Removing unused files find . -name *~ | xargs rm -f diff --git a/hooks/minimal b/hooks/minimal index c5bb412c0..37e1f7503 100755 --- a/hooks/minimal +++ b/hooks/minimal @@ -10,9 +10,15 @@ set -e # Removing unused packages -apt-get remove --purge --yes apt-utils aptitude -apt-get remove --purge --yes man-db manpages info -apt-get remove --purge --yes ssl wget +for PACKAGE in apt-utils aptitude man-db manpages info ssl wget +do + if ! apt-get remove --purge --yes "${PACKAGE}" + then + echo "WARNING: ${PACKAGE} isn't installed" + fi +done + +apt-get autoremove || true # Removing unused files find . -name *~ | xargs rm -f |