daml/dev-env/bin/dade-collect-garbage

13 lines
352 B
Bash
Executable File

#!/usr/bin/env bash
DADE_CURRENT_SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
BASEL_CACHE_DIR="${DADE_CURRENT_SCRIPT_DIR}/../../.bazel-cache"
source "$DADE_CURRENT_SCRIPT_DIR/../lib/dade-common"
echo "Cleaning nix cache..."
nix-store --gc
echo "Deleting bazel cache: ${BASEL_CACHE_DIR}..."
rm -rf "${BASEL_CACHE_DIR}"
echo "Done."