Skip to content

Commit 6ad7483

Browse files
authored
Merge pull request linode#61 from alioso/fix-path-with-local-deps
Fix script to use local yaml
2 parents e68c275 + d0a8380 commit 6ad7483

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

getDependencies.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ NC='\033[0m' # No Color
33

44
SPEC_FILE=""
55
if [ -n ${1} ]; then
6-
SPEC_FILE=${1}
6+
SPEC_FILE=../${1}
77
echo $([ -f $SPEC_FILE ])
88
fi
99

@@ -18,15 +18,15 @@ 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;
22+
cd -
2223
else
2324
echo
2425
printf "${BLUE}Fetching API specs${NC}\n"
2526
cd -
2627
curl https://raw.githubusercontent.com/linode/linode-api-docs/master/openapi.yaml > static/api/docs/v4/openapi.yaml;
2728
fi
2829

29-
3030
echo
3131
printf "${BLUE}Removing faulty data${NC}\n"
3232
sed -i.bak '/backgroundColor:/d' static/api/docs/v4/openapi.yaml

0 commit comments

Comments
 (0)