Fixed addon config parsing

The check for a comment line wasn't actually working
before. Shell quoting ftl.

Signed-off-by: Simo Leone <simo@archlinux.org>
This commit is contained in:
Simo Leone 2007-10-24 15:10:42 -05:00
parent 34e1d6b5dc
commit 8a5b9225e9

View File

@ -66,7 +66,7 @@ run_hook ()
msg ":: Mounting addons" msg ":: Mounting addons"
while read img mountpoint type; do while read img mountpoint type; do
# check if this line is a comment (starts with #) # check if this line is a comment (starts with #)
[ "${img#'#'}" != "${img}" ] && continue [ "${img#"#"}" != "${img}" ] && continue
if [ "${type}" = "bind" ]; then if [ "${type}" = "bind" ]; then
_mnt_bind ${img} ${mountpoint} _mnt_bind ${img} ${mountpoint}