diff --git a/scripts/list_staged_release.sh b/scripts/list_staged_release.sh index 2ae3b5adc88..9ec582dce77 100755 --- a/scripts/list_staged_release.sh +++ b/scripts/list_staged_release.sh @@ -16,6 +16,6 @@ # ---------------------------------------------------------------------------- set -e -RC_LIST=$(mvn org.sonatype.plugins:nexus-staging-maven-plugin:rc-list -DserverId=sonatype-nexus-staging -DnexusUrl=https://oss.sonatype.org | grep -A 2 "\[INFO\] ID State Description") +RC_LIST=$(mvn -B org.sonatype.plugins:nexus-staging-maven-plugin:rc-list -DserverId=sonatype-nexus-staging -DnexusUrl=https://oss.sonatype.org | grep -A 2 "\[INFO\] ID State Description") STAGED=$(echo "$RC_LIST" | grep 'OPEN' | cut -f 2 -d ' ') echo "$STAGED"