[java-parent-project-v3] 01/02: Change upload script to delete SNAPSHOT files earlier.

Tom Zeller tzeller at dragonacea.biz
Mon Nov 16 11:41:58 EST 2015


This is an automated email from the git hooks/post-receive script.

tzeller pushed a commit to branch master
in repository java-parent-project-v3.

commit 8aa052c02a04f46ea02ef189784af1f876cd782a
Author: Tom Zeller <tzeller at dragonacea.biz>
AuthorDate: Mon Nov 16 10:42:38 2015 -0600

    Change upload script to delete SNAPSHOT files earlier.
---
 bin/upload-nexus-dependencies.sh | 18 ++++++------------
 1 file changed, 6 insertions(+), 12 deletions(-)

diff --git a/bin/upload-nexus-dependencies.sh b/bin/upload-nexus-dependencies.sh
index 9d09062..01732e9 100755
--- a/bin/upload-nexus-dependencies.sh
+++ b/bin/upload-nexus-dependencies.sh
@@ -189,6 +189,12 @@ $ECHO ""
 
 cd repository-diff
 
+ask y "Delete '*-SNAPSHOT*' files" DEL_SNAPSHOT_FILES
+if [ $DEL_SNAPSHOT_FILES == "y" ] ; then
+    $FIND * -type f -name '*-SNAPSHOT*' -exec rm {} \;
+fi
+$ECHO ""
+
 ask y "Delete empty directories from repository-diff" DEL_EMPTY_REPO_DIFF
 if [ $DEL_EMPTY_REPO_DIFF == "y" ] ; then
     $FIND * -type d -empty -delete
@@ -201,18 +207,6 @@ if [ $PRINT_REPO_DIFF == "y" ] ; then
 fi
 $ECHO ""
 
-ask n "Delete '*-SNAPSHOT*' files" DEL_SNAPSHOT_FILES
-if [ $DEL_SNAPSHOT_FILES == "y" ] ; then
-    $FIND * -type f -name '*-SNAPSHOT*' -exec rm {} \;
-    
-    ask y "Print repository-diff again" PRINT_REPO_DIFF_AGAIN
-    if [ $PRINT_REPO_DIFF_AGAIN == "y" ] ; then
-        $FIND *
-    fi
-$ECHO ""
-fi
-$ECHO ""
-
 ask y "Download signatures" DOWNLOAD_SIGNATURES
 if [ $DOWNLOAD_SIGNATURES == "y" ] ; then
     $ECHO " Signatures are downloaded using cURL from Maven Central by default."

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list