diff --git a/.circleci/release.bash b/.circleci/release.bash index 6ee236b..2ae8bef 100644 --- a/.circleci/release.bash +++ b/.circleci/release.bash @@ -32,8 +32,9 @@ if [[ $ERR -ne 0 ]]; then exit $ERR fi -#The proof of the pudding is the eating. - Cervantes -export id="`build/stoml_linux_amd64 draft.json id`" +wget -q "https://github.com/freshautomations/stoml/releases/download/v${STOML_VERSION}/stoml_linux_amd64" +chmod +x ./stoml_linux_amd64 +export id="`./stoml_linux_amd64 draft.json id`" if [ -z "$id" ]; then echo "ERROR: Could not get draft id." exit 1 @@ -57,8 +58,6 @@ if [[ $ERR -ne 0 ]]; then exit $ERR fi -wget -q "https://github.com/freshautomations/stoml/releases/download/v${STOML_VERSION}/stoml_linux_amd64" -chmod +x ./stoml_linux_amd64 export uid="`./stoml_linux_amd64 upload.json id`" if [ -z "$uid" ]; then echo "ERROR: Could not get upload id for binary ${binary}." diff --git a/README.md b/README.md index f3e0617..031237c 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,7 @@ stemplate dictionary.json file.template ``` Check the `test.json` and `test.template` files for an [example](#example). + Optionally, you can use the `--output` or `-o` flags to add a file where the result will be written, instead of the default `stdout`.