#!/usr/bin/env bash

_SANDBOX_RESOURCE_URL="https://proxy.sandbox.yandex-team.ru/$1"
_TARGET_PATH=$2/$3

mkdir -p $2

echo "Downloading resource id $1 from sandbox to $2"
curl --fail ${_SANDBOX_RESOURCE_URL} > ${_TARGET_PATH}

