Only try to sign jars if the current call built any

This commit is contained in:
Jonas Herzig
2018-06-10 17:58:44 +02:00
parent 38892026c5
commit 16b40a5725

View File

@@ -49,6 +49,7 @@ if [ "$(git blame -p version.txt | head -n1 | cut -d' ' -f1)" == "$(git rev-pars
pushd versions
for ver in */; do
[ "$ver" == "core/" ] && continue
[ -d "$ver/build/libs" ] || continue
pushd "$ver"
# Note: This requires there to be one and only one jar file (ignoring source artifacts)
jar="build/libs/$(ls build/libs | grep -v sources)"