Skip to content

Commit 9aa7dea

Browse files
author
Alban Bailly
committed
fixing paths
1 parent 61186f3 commit 9aa7dea

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

getDependencies.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,20 @@ fi
1818
if [ -f "$SPEC_FILE" ]; then
1919
echo
2020
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;
2222
else
2323
echo
2424
printf "${BLUE}Fetching API specs${NC}\n"
2525
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;
2727
fi
2828

2929

3030
echo
3131
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
3434

3535
echo
3636
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

0 commit comments

Comments
 (0)