Skip to content

Commit a356fe0

Browse files
committed
Debugging
1 parent a0665ac commit a356fe0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ci/scripts/free-disk-space.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/bash
2+
set -x
23
# Free disk space on Linux GitHub action runners
34

45
# # ======
@@ -23,8 +24,7 @@ printSeparationLine() {
2324
# macro to compute available space
2425
# REF: https://unix.stackexchange.com/a/42049/60849
2526
# REF: https://stackoverflow.com/a/450821/408734
26-
getAvailableSpace() { df -a "$1" | awk 'NR > 1 {avail+=$4} END {print avail}'; }
27-
27+
getAvailableSpace() { echo $(df -a $1 | awk 'NR > 1 {avail+=$4} END {print avail}'); }
2828
# macro to make Kb human readable (assume the input is Kb)
2929
# REF: https://unix.stackexchange.com/a/44087/60849
3030
formatByteCount() { numfmt --to=iec-i --suffix=B --padding=7 "$1"'000'; }

0 commit comments

Comments
 (0)