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:
parent
34e1d6b5dc
commit
8a5b9225e9
@ -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}
|
||||||
|
Loading…
Reference in New Issue
Block a user