modules-load: handle comments better
This handles comments without a trailing space after the comment character. Reported-By: josef64
This commit is contained in:
parent
9dd8ee330d
commit
c289774b00
@ -44,8 +44,8 @@ load_modules()
|
||||
[ -z "$file" ] && return 0
|
||||
while read m x; do
|
||||
case $m in
|
||||
\;) continue ;;
|
||||
\#) continue ;;
|
||||
\;*) continue ;;
|
||||
\#*) continue ;;
|
||||
*) modules="$modules $m"
|
||||
;;
|
||||
esac
|
||||
|
Loading…
Reference in New Issue
Block a user