summaryrefslogtreecommitdiff
path: root/bin/live-snapshot
diff options
context:
space:
mode:
Diffstat (limited to 'bin/live-snapshot')
-rwxr-xr-xbin/live-snapshot4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/live-snapshot b/bin/live-snapshot
index 0dcfae1..3d4efad 100755
--- a/bin/live-snapshot
+++ b/bin/live-snapshot
@@ -346,8 +346,8 @@ Do_filelist ()
TMP_FILELIST=$1
if [ -f "${SNAP_LIST}" ]
then
- # Generate include list
- for entry in $(cat "${SNAP_LIST}" | grep -v '^#.*$' | grep -v '^ *$')
+ # Generate include list removing empty and commented lines
+ for entry in $(sed -e '/^ *$/d' -e '/^#.*$/d' "${SNAP_LIST}")
do
if [ -d "${entry}" ]
then