X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fmaven-deploy.sh;h=15928eea4e06f886553a5c0641fac4c9fed9d05f;hb=bb5e0da850b1c5ed31cf76af62d91b506c13d8dd;hp=fc8e2465c224f6921fc3c5ffbf83fd3a86bfd5a4;hpb=92c2494543e0e66bfe8cd636efdf8cc618a03b62;p=releng%2Fglobal-jjb.git diff --git a/shell/maven-deploy.sh b/shell/maven-deploy.sh index fc8e2465..15928eea 100644 --- a/shell/maven-deploy.sh +++ b/shell/maven-deploy.sh @@ -22,8 +22,9 @@ nexus_repo_url="$NEXUS_URL/content/repositories/$NEXUS_REPO" # Remove metadata files that were not updated. set +e # Temporarily disable to run diff command. -metadata_files=($(diff -s -r "$m2repo_dir" "$WORKSPACE/m2repo-backup" \ - | grep 'Files .* and .* are identical' | awk '{print $2}')) +IFS=" " read -r -a metadata_files <<< "$(diff -s -r "$m2repo_dir" "$WORKSPACE/m2repo-backup" \ + | grep 'Files .* and .* are identical' \ + | awk '{print $2}')" set -e # Re-enable. set +u # $metadata_files could be unbound if project is new.