Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
lima-vm
GitHub Repository: lima-vm/lima
Path: blob/master/hack/debug-cache.sh
1637 views
1
#!/bin/bash
2
3
# SPDX-FileCopyrightText: Copyright The Lima Authors
4
# SPDX-License-Identifier: Apache-2.0
5
6
set -eu -o pipefail
7
cache_dir="${HOME}/Library/Caches"
8
if [ "$(uname -s)" != "Darwin" ]; then
9
cache_dir="${HOME}/.cache"
10
fi
11
if [ ! -e "${cache_dir}/lima/download/by-url-sha256" ]; then
12
echo "No cache"
13
exit 0
14
fi
15
for f in "${cache_dir}/lima/download/by-url-sha256/"*; do
16
echo "$f"
17
ls -l "$f"
18
cat "${f}/url"
19
echo
20
echo ---
21
done
22
23