mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-11 12:59:17 +03:00
ci/unix: better cache size reporting (#8556)
Current reports look like: ``` Disk cache small enough:\n20G/home/vsts/.bazel-cache ``` because `echo` does not convert `\n`. An alternative would be to replace `echo` with `printf`, but I have had enough issues with subshells-in-strings lately that I prefer just avoiding them when possible. CHANGELOG_BEGIN CHANGELOG_END
This commit is contained in:
parent
d5cf0ea4ec
commit
3641751571
@ -38,7 +38,8 @@ steps:
|
||||
echo "Deleting '$disk_cache'..."
|
||||
rm -rf "$disk_cache"
|
||||
else
|
||||
echo "Disk cache small enough:\n$(du -hs "$disk_cache")"
|
||||
echo "Disk cache small enough:"
|
||||
du -hs "$disk_cache"
|
||||
fi
|
||||
local_cache=$HOME/.cache/bazel
|
||||
if [ -d "$local_cache" ]; then
|
||||
@ -47,7 +48,8 @@ steps:
|
||||
chmod -R +w "$local_cache"
|
||||
rm -rf "$local_cache"
|
||||
else
|
||||
echo "Local cache small enough:\n$(du -hs "$local_cache")"
|
||||
echo "Local cache small enough:"
|
||||
du -hs "$local_cache"
|
||||
fi
|
||||
else
|
||||
echo "No '$local_cache', moving on."
|
||||
|
Loading…
Reference in New Issue
Block a user