saubermann: avoid checking non-existing trash
This commit is contained in:
parent
21059b6dcb
commit
fcb0bfe3a7
1 changed files with 5 additions and 1 deletions
|
@ -15,7 +15,11 @@ echo "== Dangling symlinks in /etc"
|
|||
find /etc -type l -and -xtype l | egrep -v 'blkid.tab|/var/log/dropbear'
|
||||
|
||||
echo "== Trashes"
|
||||
du -s /home/*/.local/share/Trash | awk '{ if ($1 > 100000) { print } }'
|
||||
for t in /home/*/.local/share/Trash; do
|
||||
if test -e "$t"; then
|
||||
du -s "$t" | awk '{ if ($1 > 100000) { print } }'
|
||||
fi
|
||||
done
|
||||
|
||||
if is_debian; then
|
||||
# check for things not installed via dpkg/apt and other junk
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue