#!/bin/bash
set -eu -o pipefail
cache_dir="${HOME}/Library/Caches"
if [ "$(uname -s)" != "Darwin" ]; then
	cache_dir="${HOME}/.cache"
fi
if [ ! -e "${cache_dir}/lima" ]; 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
