Skip to content

Commit

Permalink
Ignore empty lines in live.persist.
Browse files Browse the repository at this point in the history
Otherwise they're interpreted as / which isn't good.
  • Loading branch information
Tails developers authored and daniel-baumann committed Apr 1, 2012
1 parent bae59cf commit 9ab12ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/live
Expand Up @@ -1603,9 +1603,9 @@ setup_unionfs ()
[ "${DEBUG}" = "Yes" ] && cp ${include_list} ${persistent_backing}/${persistence_list}.${device_name}
while read source dest options # < ${include_list}
do
if echo ${source} | grep -qe "^[[:space:]]*#"
if echo ${source} | grep -qe "^[[:space:]]*\(#.*\)\?$"
then
# skipping commented line
# skipping empty or commented lines
continue
fi

Expand Down

0 comments on commit 9ab12ed

Please sign in to comment.