File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -131,6 +131,7 @@ cleanDocker() {
131131}
132132
133133removeAllSnaps () {
134+ # This won't remove the snaps `core` and `snapd`
134135 sudo snap remove $( snap list | awk ' !/^Name|^core|^snapd/ {print $1}' )
135136}
136137
@@ -141,9 +142,6 @@ AVAILABLE_INITIAL=$(getAvailableSpace)
141142printDF " BEFORE CLEAN-UP:"
142143echo " "
143144
144- echo " => installed snaps:"
145- snap list
146-
147145removeDir /usr/local/lib/android
148146removeDir /usr/share/dotnet
149147removeDir /usr/share/swift
@@ -162,7 +160,7 @@ execAndMeasureSpaceChange cleanDocker "Docker images"
162160execAndMeasureSpaceChange cleanSwap " Swap storage"
163161
164162echo " => largest directories:"
165- du --max-depth=7 /* -h | sort -nr | head -1000
163+ sudo du --max-depth=7 /* -h | sort -nr | head -1000
166164
167165# Output saved space statistic
168166echo " "
You can’t perform that action at this time.
0 commit comments