Fix update_studio script to work with pluginz change
aosp/3305276 missed one pluginz->plugin update for importMaven.
It also created a second line starting with 'androidGradlePlugin = ' in gradle/libs.versions.toml, and the update_studio script started replacing that line in addition to the line that defines the version. This update the regex to only match the version line.
Test: `development/update_studio.sh` runs successfully after updating version numbers
Change-Id: I29d9c4c8de26fd4d6bed789f52674d3cede27878
diff --git a/development/update_studio.sh b/development/update_studio.sh
index e417fe5..d42c5d5 100755
--- a/development/update_studio.sh
+++ b/development/update_studio.sh
@@ -51,9 +51,9 @@
# Update libs.versions.toml
echo Updating dependency versions
-sedInPlace "s/androidGradlePlugin = .*/androidGradlePlugin = \"$AGP_VERSION\"/g" gradle/libs.versions.toml
+sedInPlace "s/androidGradlePlugin = \".*/androidGradlePlugin = \"$AGP_VERSION\"/g" gradle/libs.versions.toml
sedInPlace "s/androidLint = \".*/androidLint = \"$LINT_VERSION\"/g" gradle/libs.versions.toml
-sedInPlace "s/androidStudio = .*/androidStudio = \"$STUDIO_VERSION\"/g" gradle/libs.versions.toml
+sedInPlace "s/androidStudio = \".*/androidStudio = \"$STUDIO_VERSION\"/g" gradle/libs.versions.toml
# update settings.gradle -- don't match the line with :$agpOverride
sedInPlace "s/com.android.settings:com.android.settings.gradle.plugin:[^$][0-9a-z\.\-]*/com.android.settings:com.android.settings.gradle.plugin:$AGP_VERSION/g" settings.gradle