Skip to content

Commit 9db9703

Browse files
committed
More WIP.
1 parent 0a8ddb8 commit 9db9703

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

docs-post

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#@TODO: Enforce first and second args.
55
PROJECT_NAME=${1:-eu-mk2}
66
TOKEN=${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
1313
PROJECT_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
1919
zip -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 ''

0 commit comments

Comments
 (0)