From 6175b7e2d8e3ade5aa691c0c05ec2b77c20448a7 Mon Sep 17 00:00:00 2001 From: Rikard Gynnerstedt Date: Tue, 27 Jun 2017 09:41:36 +0200 Subject: [PATCH] changed shebang and use debug2 for response --- deploy/s3.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/deploy/s3.sh b/deploy/s3.sh index 08798637..5b1e2523 100644 --- a/deploy/s3.sh +++ b/deploy/s3.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh #Here is a sample custom api script. #This file name is "myapi.sh" @@ -121,8 +121,9 @@ _deploy_with_curl() { export _H3="x-amz-acl:${acl}" export _H4="x-amz-content-sha256:$(_payload_hash)" export _H5="x-amz-date:${iso_timestamp}" + response=$(_post "${file}" "https://${bucket}.s3.${region}.amazonaws.com/${prefix}") - _debug response + _debug2 response } _payload_hash() {