diff --git a/aws/aws_s3_sync.sh b/aws/aws_s3_sync.sh index fc01ee74204..8c5e9f45db5 100755 --- a/aws/aws_s3_sync.sh +++ b/aws/aws_s3_sync.sh @@ -81,8 +81,9 @@ decomment(){ } validate_s3_url(){ - if ! is_s3_url "$1"; then - die "Invalid S3 URL given: $1" + local url="$1" + if ! is_s3_url "$url"; then + die "Invalid S3 URL given: $url" fi }