Skip to content

Commit 48ff5a1

Browse files
committed
remove useless echo
1 parent 8642968 commit 48ff5a1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,15 @@ printSeparationLine() {
1515
# compute available space
1616
# REF: https://unix.stackexchange.com/a/42049/60849
1717
# REF: https://stackoverflow.com/a/450821/408734
18-
getAvailableSpace() { echo $(df -a | awk 'NR > 1 {avail+=$4} END {print avail}'); }
18+
getAvailableSpace() {
19+
df -a | awk 'NR > 1 {avail+=$4} END {print avail}'
20+
}
1921

2022
# make Kb human readable (assume the input is Kb)
2123
# REF: https://unix.stackexchange.com/a/44087/60849
22-
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+
}
2327

2428
# macro to output saved space
2529
printSavedSpace() {

0 commit comments

Comments
 (0)