Skip to content

Commit a9a83e0

Browse files
committed
move function to minimize diff
1 parent 7f61b4f commit a9a83e0

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,17 @@ set -euo pipefail
99
# - Check that there are no big packages preinstalled that we aren't using
1010
# - Check that all directores we are removing are still present (look at the warnings)
1111

12+
# Check if the architecture is x86.
13+
isX86() {
14+
local arch
15+
arch=$(uname -m)
16+
if [ "$arch" = "x86_64" ]; then
17+
return 0
18+
else
19+
return 1
20+
fi
21+
}
22+
1223
# Print a line of the specified character.
1324
printSeparationLine() {
1425
for ((i = 0; i < 80; i++)); do
@@ -30,17 +41,6 @@ formatByteCount() {
3041
numfmt --to=iec-i --suffix=B --padding=7 "$1"'000'
3142
}
3243

33-
# Check if the architecture is x86.
34-
isX86() {
35-
local arch
36-
arch=$(uname -m)
37-
if [ "$arch" = "x86_64" ]; then
38-
return 0
39-
else
40-
return 1
41-
fi
42-
}
43-
4444
# Execute a task, printing how much space was saved and how long it took to run the task
4545
execAndMeasure() {
4646
local task_name=${1}

0 commit comments

Comments
 (0)