From ec87884462bcce0e434fff2b05b0bca9dfe335f0 Mon Sep 17 00:00:00 2001 From: neingeist Date: Thu, 19 Mar 2020 12:18:16 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20large-files:=20ignore=20/run/med?= =?UTF-8?q?ia/*?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- large-files | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/large-files b/large-files index cb1a2d0..8e8ba60 100755 --- a/large-files +++ b/large-files @@ -3,6 +3,6 @@ LARGE=${1:-100M} WHERE=`mount -t ext2,ext3,ext4,btrfs,ntfs,reiserfs,xfs,zfs | awk '{ print $3 }'` -IGNORE='^(/var/lib/rpm/Packages|/home/.*/.btsync/.*\.db.*|.*/objects/pack/pack-.*\.pack|.*/\.recoll/xapiandb/.*\.DB)$' +IGNORE='^(/var/lib/rpm/Packages|/home/.*/.btsync/.*\.db.*|.*/objects/pack/pack-.*\.pack|.*/\.recoll/xapiandb/.*\.DB|/run/media/.*)$' sudo find $WHERE -xdev -size +$LARGE | grep --line-buffered -Ev "$IGNORE"