diff options
Diffstat (limited to 'hook-functions')
| -rw-r--r-- | hook-functions | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/hook-functions b/hook-functions index 6b2e3e4..f0b310f 100644 --- a/hook-functions +++ b/hook-functions @@ -33,8 +33,9 @@ add_modules_from_file() return fi - sed -e '/^#/d' ${1} | while read module rest; do - force_load "${module}" "${rest}" + grep '^[^#]' ${1} | while read module args; do + [ -n "$module" ] || continue + force_load "${module}" "${args}" done } |
