Update entrypoint

This commit is contained in:
Vladimir Levin 2023-08-06 17:58:00 +09:00
parent 44bb614a8b
commit a68b9910d6
1 changed files with 1 additions and 2 deletions

View File

@ -8,10 +8,9 @@ if [[ "$YA_INSECURE" == "true" ]]; then
fi
recursive_option=""
if [[ "YA_RECURSIVE" == "true" ]]; then
if [[ "$YA_RECURSIVE" == "true" ]]; then
recursive_option="--recursive"
fi
mc alias set ${insecure_option:+"$insecure_option"} target "$YA_ENDPOINT" "$YA_ACCESS_KEY" "$YA_SECRET_KEY"
mc ${insecure_option:+"$insecure_option"} cp ${recursive_option:+"$recursive_option"} $1 "target/$2"