We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0665ac commit 2d374caCopy full SHA for 2d374ca
src/ci/scripts/free-disk-space.sh
@@ -23,11 +23,10 @@ printSeparationLine() {
23
# macro to compute available space
24
# REF: https://unix.stackexchange.com/a/42049/60849
25
# REF: https://stackoverflow.com/a/450821/408734
26
-getAvailableSpace() { df -a "$1" | awk 'NR > 1 {avail+=$4} END {print avail}'; }
27
-
+getAvailableSpace() { echo $(df -a $1 | awk 'NR > 1 {avail+=$4} END {print avail}'); }
28
# macro to make Kb human readable (assume the input is Kb)
29
# REF: https://unix.stackexchange.com/a/44087/60849
30
-formatByteCount() { numfmt --to=iec-i --suffix=B --padding=7 "$1"'000'; }
+formatByteCount() { echo $(numfmt --to=iec-i --suffix=B --padding=7 $1'000'); }
31
32
# macro to output saved space
33
printSavedSpace() {
0 commit comments