diff --git a/jetbrains-toolbox/create_install.sh b/jetbrains-toolbox/create_install.sh index 286d0563..c95bbeef 100755 --- a/jetbrains-toolbox/create_install.sh +++ b/jetbrains-toolbox/create_install.sh @@ -6,7 +6,7 @@ cd "$dp0" api_url='https://data.services.jetbrains.com/products/releases?code=TBA&latest=true&type=release' echo Get latest version: $api_url ... -download_url=$($curl --location "$api_url" | "$grep" --only-matching "(?<=\"link\":\")[^,]+tar.gz(?=\")") +download_url=$($curl --location "$api_url" | "$grep" --only-matching "(?<=\"link\":\")[^,]+tar.gz(?=\")" | tail -n 1 | head -n 1) echo Downloading: $download_url ... $curl --location $download_url --remote-name errorlevel=$?