We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e68c275 + d0a8380 commit 6ad7483Copy full SHA for 6ad7483
getDependencies.sh
@@ -3,7 +3,7 @@ NC='\033[0m' # No Color
3
4
SPEC_FILE=""
5
if [ -n ${1} ]; then
6
- SPEC_FILE=${1}
+ SPEC_FILE=../${1}
7
echo $([ -f $SPEC_FILE ])
8
fi
9
@@ -18,15 +18,15 @@ fi
18
if [ -f "$SPEC_FILE" ]; then
19
echo
20
printf "${BLUE}Using local spec file at: ${SPEC_FILE}${NC}\n"
21
- cat $SPEC_FILE > static/api/docs/v4/openapi.yaml;
+ cat $SPEC_FILE > ../static/api/docs/v4/openapi.yaml;
22
+ cd -
23
else
24
25
printf "${BLUE}Fetching API specs${NC}\n"
26
cd -
27
curl https://raw.githubusercontent.com/linode/linode-api-docs/master/openapi.yaml > static/api/docs/v4/openapi.yaml;
28
29
-
30
31
printf "${BLUE}Removing faulty data${NC}\n"
32
sed -i.bak '/backgroundColor:/d' static/api/docs/v4/openapi.yaml
0 commit comments