Commit 9972453a authored by Miguel Angel Reina Ortega's avatar Miguel Angel Reina Ortega
Browse files

Fix generate-config.sh

parent a0d1c0af
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -32,7 +32,7 @@ fres=0

for i in $1/*.yaml ;  do
	echo "[$i]"
    echo "[$i]" | grep -Po "\w+\.yaml" >> CONFIG.txt ;
	echo "[$i]" | grep -Po "\w+\.yaml" | xargs -I % sh -c 'echo [%]' >> CONFIG.txt ;
    node ./scripts/node_modules/js-yaml/bin/js-yaml $i > "$i.json" ;
    cat "$i.json" | node ./scripts/node_modules/json/lib/json info.version >> CONFIG.txt
    cat "$i.json" | node ./scripts/node_modules/json/lib/json externalDocs.description | grep -Po "[0-9]+[.][0-9]+[.][0-9]+" >> CONFIG.txt