Files
lima/hack/debug-cache.sh
Akihiro Suda fd1552da70 Add "Copyright The Lima Authors" boilterplate
The boilerplate is added for Go files, shell scripts, and Makefiles.
https://github.com/containerd/ltag is used for validating the boilerplates.

- hack/ltag: ltag templates
- .github/workflows/test.yml: ltag is executed for validation

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2025-03-03 10:52:45 +09:00

22 lines
437 B
Bash
Executable File

#!/bin/bash
# SPDX-FileCopyrightText: Copyright The Lima Authors
# SPDX-License-Identifier: Apache-2.0
set -eu -o pipefail
cache_dir="${HOME}/Library/Caches"
if [ "$(uname -s)" != "Darwin" ]; then
cache_dir="${HOME}/.cache"
fi
if [ ! -e "${cache_dir}/lima/download/by-url-sha256" ]; then
echo "No cache"
exit 0
fi
for f in "${cache_dir}/lima/download/by-url-sha256/"*; do
echo "$f"
ls -l "$f"
cat "${f}/url"
echo
echo ---
done