Fix echo parameter issue (#12775)

Signed-off-by: danfengliu <danfengl@vmware.com>
This commit is contained in:
danfengliu 2020-08-14 10:23:58 +08:00 committed by GitHub
parent e1eac2b4d0
commit 5cb239af1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,17 +58,10 @@ else
harbor_target_bucket=$harbor_releases_bucket/$DRONE_BRANCH
fi
export GS_PRIVATE_KEY=$GS_PRIVATE_KEY
export TEST_EXPORT_ENV=$TEST_EXPORT_ENV
echo "1. ===========($TEST_GS_KEY)=========="
echo "2. ===========($test_gs_key)=========="
echo "3. ===========($TEST_EXPORT_ENV)=========="
echo "4. ===========($test_export_env)=========="
# GC credentials
keyfile="/root/harbor-ci-logs.key"
botofile="/root/.boto"
echo -en $GS_PRIVATE_KEY > $keyfile
echo -n $GS_PRIVATE_KEY > $keyfile
chmod 400 $keyfile
echo "[Credentials]" >> $botofile
echo "gs_service_key_file = $keyfile" >> $botofile
@ -229,4 +222,3 @@ if [ -f "$keyfile" ]; then
rm -f $keyfile
fi