From 6332216685b249ef3e396a08c6383403fb326965 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=9F=E9=85=8C=20=E9=B5=AC=E5=85=84?= Date: Fri, 5 May 2023 00:59:00 +0800 Subject: [PATCH] Fixed spaces on MacOS --- arch_upload_aws4.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch_upload_aws4.sh b/arch_upload_aws4.sh index 5abd020..ed6b9b5 100755 --- a/arch_upload_aws4.sh +++ b/arch_upload_aws4.sh @@ -56,7 +56,7 @@ _DATE=$( date -u +"%Y%m%d" ) _DTIME=$( date -u +"%Y%m%dT%H%M%SZ" ) _HEADERS="content-length;content-type;host;x-amz-content-sha256;x-amz-date" _CTYPE="application/octet-stream" -_CLEN=$( wc -c $_FILE | cut -d' ' -f1 ) +_CLEN=$( wc -c < $_FILE | tr -d ' ' ) # Canon Request _C="PUT"