commit 6332216685b249ef3e396a08c6383403fb326965
| author | 斟酌 鵬兄 <tgckpg@gmail.com> |
| date | 2023-05-04T16:59:00Z |
| subject | Fixed spaces on MacOS |
commit 6332216685b249ef3e396a08c6383403fb326965
Author: 斟酌 鵬兄 <tgckpg@gmail.com>
Date: 2023-05-04T16:59:00Z
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"