sijie commented on a change in pull request #772: bookkeeper script excludes 
sources jar
URL: https://github.com/apache/bookkeeper/pull/772#discussion_r153074715
 
 

 ##########
 File path: bookkeeper-server/bin/bookkeeper
 ##########
 @@ -71,18 +71,18 @@ else
 fi
 
 # exclude tests jar
-RELEASE_JAR=$(ls ${BK_HOME}/*bookkeeper-server-*.jar 2> /dev/null | grep -v 
tests | tail -1)
+RELEASE_JAR=$(ls ${BK_HOME}/*bookkeeper-server-*.jar 2> /dev/null | grep -v 
tests | grep -v sources | tail -1)
 
 Review comment:
   the result returned by `ls` is unsorted. that means it will have different 
behaviors on different bash (mac vs linux).
   
   a deterministic way is to `ls ... | sort | tail -1`

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to