Skip to content

Commit

Permalink
container log slightly improved
Browse files Browse the repository at this point in the history
  • Loading branch information
Echsecutor committed Aug 19, 2020
1 parent d62ee10 commit ff0ad01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auto-hash-folder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ inotifywait -m $WHATCH_DIR -e create -e moved_to |
while read -r line; do
echo -e "\nPosting $line\n" >>post.log
python3 -c "import binascii; import sys; sys.stdout.buffer.write(binascii.unhexlify(\"${line:14:64}\"));" |
curl -i --data-binary "@-" --header "Content-Type: application/octet-stream" --header "X-Auth-Token: $POST_X_AUTH" "$POST_BINARY_URL" >>post.log 2>&1 ||
curl -v --data-binary "@-" --header "Content-Type: application/octet-stream" --header "X-Auth-Token: $POST_X_AUTH" "$POST_BINARY_URL" >>post.log 2>&1 ||
EXIT_STATUS=$?
done <$out_file_path
cat post.log
Expand Down

0 comments on commit ff0ad01

Please sign in to comment.