modules-load: handle comments better

This handles comments without a trailing space after the comment
character.

Reported-By: josef64
This commit is contained in:
Doug Freed 2016-08-26 15:23:54 -04:00
parent 9dd8ee330d
commit c289774b00

View File

@ -44,8 +44,8 @@ load_modules()
[ -z "$file" ] && return 0 [ -z "$file" ] && return 0
while read m x; do while read m x; do
case $m in case $m in
\;) continue ;; \;*) continue ;;
\#) continue ;; \#*) continue ;;
*) modules="$modules $m" *) modules="$modules $m"
;; ;;
esac esac