#!/usr/bin/env bash # apm-pack-check-clean pre-push hook: `apm pack --check-versions --check-clean # --dry-run`, run with git's repo-locating env scrubbed first. A script rather # than a bare `apm ...` entry only so it can source that scrub -- see # scripts/lib/clean-git-env.sh and issue #204. Full rationale for the gate # itself: docs/spec/gates.md, "apm-pack-check-clean". set -euo pipefail # shellcheck source=scripts/lib/clean-git-env.sh source "$(dirname "${BASH_SOURCE[0]}")/lib/clean-git-env.sh" exec apm pack --check-versions --check-clean --dry-run