Skip to content

Commit 9c06c85

Browse files
committed
fix(ccache): pass dir-size diff to numfmt past '--' to allow negatives
1 parent a5b3750 commit 9c06c85

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/functions/compilation/ccache.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ function do_with_ccache_statistics() {
100100

101101
# calculate the difference, in human-readable format; numfmt is from coreutils.
102102
local ccache_dir_size_diff_human
103-
ccache_dir_size_diff_human="$(numfmt --to=iec-i --suffix=B --format="%.2f" "${ccache_dir_size_diff}")"
103+
ccache_dir_size_diff_human="$(numfmt --to=iec-i --suffix=B --format="%.2f" -- "${ccache_dir_size_diff}")"
104104

105105
# display the difference
106106
display_alert "ccache dir size change" "${ccache_dir_size_diff_human}" "ccache"

0 commit comments

Comments
 (0)