Always exclude /proc from Source Disk Use Information

This commit is contained in:
zertrin 2016-09-05 01:40:52 +02:00
parent b39300c514
commit 0f901f4f78

View file

@ -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