cleanup: do not create postinstall script, if nothing to delete

This commit is contained in:
Anton Midyukov 2022-02-16 09:45:54 +07:00
parent c6b6304c96
commit ef7a6561db

View File

@ -6,6 +6,9 @@ if [ -n "$GLOBAL_VERBOSE" ]; then
echo "** GLOBAL_CLEANUP_BASE_PACKAGES: $GLOBAL_CLEANUP_BASE_PACKAGES"
fi >&2
[ -n "$GLOBAL_CLEANUP_PACKAGES" ] ||
[ -n "$GLOBAL_CLEANUP_BASE_PACKAGES" ] || exit 0
export GLOBAL_CLEANUP_PACKAGES="$GLOBAL_CLEANUP_PACKAGES \
$GLOBAL_CLEANUP_BASE_PACKAGES"