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}"
|
echo "-----------[ Source Disk Use Information ]-----------" >> "${LOGFILE}"
|
||||||
|
|
||||||
|
# FIXME: doesn't work properly with include/exclude-filelists (issue #101)
|
||||||
|
|
||||||
# Patches to support spaces in paths-
|
# Patches to support spaces in paths-
|
||||||
# Remove space as a field separator temporarily
|
# Remove space as a field separator temporarily
|
||||||
OLDIFS=$IFS
|
OLDIFS=$IFS
|
||||||
|
|
@ -487,6 +489,9 @@ get_source_file_size()
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# always exclude /proc
|
||||||
|
DUEXCLIST="/proc\n"
|
||||||
|
|
||||||
for exclude in "${EXCLIST[@]}"; do
|
for exclude in "${EXCLIST[@]}"; do
|
||||||
DUEXCLIST="${DUEXCLIST}${exclude}\n"
|
DUEXCLIST="${DUEXCLIST}${exclude}\n"
|
||||||
done
|
done
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue