File: LOST_FOUND

package info (click to toggle)
cruft 0.9.16
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,308 kB
  • sloc: ansic: 803; perl: 315; sh: 178; makefile: 61
file content (21 lines) | stat: -rwxr-xr-x 365 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/dash

set -e
. /usr/lib/cruft/common.sh
cruft_debug

mount | egrep ".* on .* type ext[23]" | awk '{ print $3"/lost+found" }' | sed 's://*:/:g' |
while read dir; do
	ignores="$(get_ignores)"
	if [ -z "$ignores" ]; then
		echo $dir
	else	
		for ignore in $ignores; do
			if is_subdir "$ignore" "$dir" ; then
				:
			else
				echo "$dir"
			fi
		done
	fi
done