File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff 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.
1324printSeparationLine () {
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
4545execAndMeasure () {
4646 local task_name=${1}
You can’t perform that action at this time.
0 commit comments