Skip to content

Commit

Permalink
Undo linting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
whiteio committed Dec 11, 2024
1 parent a0665ac commit 2d374ca
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/ci/scripts/free-disk-space.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,10 @@ printSeparationLine() {
# macro to compute available space
# REF: https://unix.stackexchange.com/a/42049/60849
# REF: https://stackoverflow.com/a/450821/408734
getAvailableSpace() { df -a "$1" | awk 'NR > 1 {avail+=$4} END {print avail}'; }

getAvailableSpace() { echo $(df -a $1 | awk 'NR > 1 {avail+=$4} END {print avail}'); }
# macro to make Kb human readable (assume the input is Kb)
# REF: https://unix.stackexchange.com/a/44087/60849
formatByteCount() { numfmt --to=iec-i --suffix=B --padding=7 "$1"'000'; }
formatByteCount() { echo $(numfmt --to=iec-i --suffix=B --padding=7 $1'000'); }

# macro to output saved space
printSavedSpace() {
Expand Down

0 comments on commit 2d374ca

Please sign in to comment.