Always exclude /proc from Source Disk Use Information
This commit is contained in:
parent
b39300c514
commit
0f901f4f78
1 changed files with 5 additions and 0 deletions
|
|
@ -469,6 +469,8 @@ get_source_file_size()
|
|||
{
|
||||
echo "-----------[ Source Disk Use Information ]-----------" >> "${LOGFILE}"
|
||||
|
||||
# FIXME: doesn't work properly with include/exclude-filelists (issue #101)
|
||||
|
||||
# Patches to support spaces in paths-
|
||||
# Remove space as a field separator temporarily
|
||||
OLDIFS=$IFS
|
||||
|
|
@ -487,6 +489,9 @@ get_source_file_size()
|
|||
;;
|
||||
esac
|
||||
|
||||
# always exclude /proc
|
||||
DUEXCLIST="/proc\n"
|
||||
|
||||
for exclude in "${EXCLIST[@]}"; do
|
||||
DUEXCLIST="${DUEXCLIST}${exclude}\n"
|
||||
done
|
||||
|
|
|
|||
Loading…
Reference in a new issue