We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8642968 commit 48ff5a1Copy full SHA for 48ff5a1
src/ci/scripts/free-disk-space.sh
@@ -15,11 +15,15 @@ printSeparationLine() {
15
# compute available space
16
# REF: https://unix.stackexchange.com/a/42049/60849
17
# REF: https://stackoverflow.com/a/450821/408734
18
-getAvailableSpace() { echo $(df -a | awk 'NR > 1 {avail+=$4} END {print avail}'); }
+getAvailableSpace() {
19
+ df -a | awk 'NR > 1 {avail+=$4} END {print avail}'
20
+}
21
22
# make Kb human readable (assume the input is Kb)
23
# REF: https://unix.stackexchange.com/a/44087/60849
-formatByteCount() { echo $(numfmt --to=iec-i --suffix=B --padding=7 $1'000'); }
24
+formatByteCount() {
25
+ numfmt --to=iec-i --suffix=B --padding=7 $1'000'
26
27
28
# macro to output saved space
29
printSavedSpace() {
0 commit comments