File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 18
18
if [ -f " $SPEC_FILE " ]; then
19
19
echo
20
20
printf " ${BLUE} Using local spec file at: ${SPEC_FILE}${NC} \n"
21
- cat $SPEC_FILE > ../ static/api/docs/v4/openapi.yaml;
21
+ cat $SPEC_FILE > static/api/docs/v4/openapi.yaml;
22
22
else
23
23
echo
24
24
printf " ${BLUE} Fetching API specs${NC} \n"
25
25
cd -
26
- curl https://raw.githubusercontent.com/linode/linode-api-docs/master/openapi.yaml > ../ static/api/docs/v4/openapi.yaml;
26
+ curl https://raw.githubusercontent.com/linode/linode-api-docs/master/openapi.yaml > static/api/docs/v4/openapi.yaml;
27
27
fi
28
28
29
29
30
30
echo
31
31
printf " ${BLUE} Removing faulty data${NC} \n"
32
- sed -i.bak ' /backgroundColor:/d' ../ static/api/docs/v4/openapi.yaml
33
- rm ../ static/api/docs/v4/openapi.yaml.bak
32
+ sed -i.bak ' /backgroundColor:/d' static/api/docs/v4/openapi.yaml
33
+ rm static/api/docs/v4/openapi.yaml.bak
34
34
35
35
echo
36
36
printf " ${BLUE} Converting YAML to JSON${NC} \n"
37
- ../ node_modules/yamljs/bin/yaml2json ../ static/api/docs/v4/openapi.yaml > ../ static/api/docs/v4/spec.json
37
+ node_modules/yamljs/bin/yaml2json static/api/docs/v4/openapi.yaml > static/api/docs/v4/spec.json
You can’t perform that action at this time.
0 commit comments