#!/bin/bash function echoAndDo() { echo "$@" eval "$@" } # Substitute for `sed -i` because different versions of sed differ in how to supply the argument for -i. function sedInPlace() { TEMP_FILE=".sedOutput.tmp" sed "$1" $2 > $TEMP_FILE cat $TEMP_FILE > $2 rm $TEMP_FILE } # Versions that the user should update when running this script echo Getting Studio version and link AGP_VERSION=${1:-8.11.0-alpha03} STUDIO_VERSION_STRING=${2:-"Android Studio Narwhal | 2025.1.1 Canary 3"} # Get studio version number from version name STUDIO_IFRAME_LINK=`curl "https://developer.android.com/studio/archive.html" | grep "