mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-07-03 12:20:49 +02:00
Merge branch '212-handling-of-comment-lines-in-legacy-config-files-is-broken' into 'master'
Resolve "handling of comment lines in legacy config files is broken" Closes #212 See merge request Pmodules/src!189
This commit is contained in:
@@ -7,8 +7,6 @@
|
||||
#
|
||||
#.............................................................................
|
||||
|
||||
set -x
|
||||
|
||||
declare VERSION='@PMODULES_VERSION@'
|
||||
|
||||
# get absolute path of script
|
||||
@@ -428,8 +426,8 @@ build_modules_legacy() {
|
||||
local -a toks=()
|
||||
while read -a toks; do
|
||||
# skip empty and comment lines
|
||||
[[ -z ${toks} ]] && continue
|
||||
[[ ${toks:0:1} == '#' ]] && continue
|
||||
(( ${#toks[@]} == 0 )) && continue
|
||||
[[ ${toks[0]:0:1} == '#' ]] && continue
|
||||
local -a deps=( ${toks[*]:2} )
|
||||
bash_expand "${toks[0]} ${toks[1]}" "${deps[@]}"
|
||||
done < "${input}"
|
||||
|
||||
Reference in New Issue
Block a user