Avoid unnecessary download of Atomix bits for full releases
Change-Id: Ic85de970f0a2ad242b437310387b4e92d334b90b
diff --git a/tools/test/bin/atomix-push-bits b/tools/test/bin/atomix-push-bits
index 24fc9b7..ffeaf2e 100755
--- a/tools/test/bin/atomix-push-bits
+++ b/tools/test/bin/atomix-push-bits
@@ -41,13 +41,14 @@
if [ ! -z "$ATOMIX_ROOT" ]; then
echo "Pushing to $node from $ATOMIX_ROOT"
ATOMIX_TAR=$ATOMIX_ROOT/dist/target/atomix.tar.gz
-elif [ -e $ATOMIX_MAVEN ]; then
+elif [ -e "$ATOMIX_MAVEN" ]; then
echo "Pushing to $node from $ATOMIX_MAVEN"
ATOMIX_TAR=$ATOMIX_MAVEN
else
echo "Pushing to $node from $ATOMIX_LOCAL"
- rm -f $ATOMIX_LOCAL
- wget -O $ATOMIX_LOCAL $ATOMIX_REMOTE
+ if [ ! -f "$ATOMIX_LOCAL" ]; then
+ wget -O $ATOMIX_LOCAL $ATOMIX_REMOTE
+ fi
ATOMIX_TAR=$ATOMIX_LOCAL
fi