Skip to content

Commit 2d374ca

Browse files
committed
Undo linting changes
1 parent a0665ac commit 2d374ca

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

+2-3
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,10 @@ printSeparationLine() {
2323
# macro to compute available space
2424
# REF: https://unix.stackexchange.com/a/42049/60849
2525
# REF: https://stackoverflow.com/a/450821/408734
26-
getAvailableSpace() { df -a "$1" | awk 'NR > 1 {avail+=$4} END {print avail}'; }
27-
26+
getAvailableSpace() { echo $(df -a $1 | awk 'NR > 1 {avail+=$4} END {print avail}'); }
2827
# macro to make Kb human readable (assume the input is Kb)
2928
# REF: https://unix.stackexchange.com/a/44087/60849
30-
formatByteCount() { numfmt --to=iec-i --suffix=B --padding=7 "$1"'000'; }
29+
formatByteCount() { echo $(numfmt --to=iec-i --suffix=B --padding=7 $1'000'); }
3130

3231
# macro to output saved space
3332
printSavedSpace() {

0 commit comments

Comments
 (0)