File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44# @TODO: Enforce first and second args.
55PROJECT_NAME=${1:- eu-mk2}
66TOKEN=${2:- foobar}
7- DEST_URL=http://localhost /docs-manager.php
7+ DEST_URL=http://docs.loadsysdev.com /docs-manager.php
88
99# @TODO: Add shortcut args for "docs" and "coverage" that set paths appropriately.
1010# @TODO: Run the appropriate command to generate docs if output path is not already populated.
@@ -13,11 +13,14 @@ SRC_DIR=tmp/coverage/html
1313PROJECT_NAME=${PROJECT_NAME} -coverage
1414
1515# This ensures no intermediate directories are stored in the ZIP file.
16- cd " $SRC_DIR "
16+ cd " $SRC_DIR " > /dev/null 2>&1
1717
1818# Send the POST request, using ZIP data fed from stdin
1919zip -rq8 - * | curl \
2020 -F " authToken=$TOKEN " \
2121 -F " projectName=$PROJECT_NAME " \
2222 -F " file=@-;filename=upload.zip;type=application/zip" \
2323 $DEST_URL
24+
25+ # Clean up json output from curl with an extra newline.
26+ echo ' '
You can’t perform that action at this time.
0 commit comments