From 21059b6dcbf2f5d61d9b05ef297dea7383aeeb70 Mon Sep 17 00:00:00 2001 From: neingeist Date: Tue, 14 Nov 2017 11:39:45 +0100 Subject: [PATCH] saubermann: use find to find dangling symlinks --- saubermann | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/saubermann b/saubermann index da99e16..5cb0539 100755 --- a/saubermann +++ b/saubermann @@ -12,7 +12,7 @@ is_fedora() { echo "== Dangling symlinks in /etc" -symlinks -r /etc | grep ^dangling | egrep -v 'blkid.tab|/var/log/dropbear' +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 } }'