We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94af35d commit 5d9c1feCopy full SHA for 5d9c1fe
1 file changed
scripts/publish-android.sh
@@ -20,9 +20,8 @@ publish_plugin () {
20
# Get latest plugin info from MavenCentral
21
PLUGIN_PUBLISHED_URL="https://repo1.maven.org/maven2/com/capacitorjs/$PLUGIN_NAME/maven-metadata.xml"
22
PLUGIN_PUBLISHED_DATA=$(curl -s $PLUGIN_PUBLISHED_URL)
23
- PLUGIN_PUBLISHED_VERSION="$(perl -ne 'print and last if s/.*<latest>(.*)<\/latest>.*/\1/;' <<< $PLUGIN_PUBLISHED_DATA)"
24
25
- if [[ $PLUGIN_VERSION == $PLUGIN_PUBLISHED_VERSION ]]; then
+ if echo "$PLUGIN_PUBLISHED_DATA" | grep -q "<version>$PLUGIN_VERSION</version>"; then
26
printf %"s\n\n" "Duplicate: a published plugin $PLUGIN_NAME exists for version $PLUGIN_VERSION, skipping..."
27
else
28
# Make log dir if doesnt exist
0 commit comments