File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ 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+ # Print a line of the specified character.
1213printSeparationLine () {
1314 for (( i = 0 ; i < 80 ; i++ )) ; do
1415 printf " %s" " $1 "
@@ -231,8 +232,11 @@ main() {
231232 printDF " BEFORE CLEAN-UP:"
232233
233234 execAndMeasure " Unused packages" cleanPackages
234- execAndMeasure " Node modules" removeNodeModules
235- execAndMeasure " Python Packages" removePythonPackages
235+ execAndMeasure " Unused Python Packages" removePythonPackages
236+ if isX86; then
237+ # On ARM, `npm uninstall` fails with a segmentation fault.
238+ execAndMeasure " Unused Node modules" removeNodeModules
239+ fi
236240 removeUnusedDirsAndFiles
237241
238242 # Output saved space statistic
You can’t perform that action at this time.
0 commit comments