[Groonga-commit] droonga/droonga-engine at 18ba409 [master] Get current version correctly

Back to archive index

YUKI Hiroshi null+****@clear*****
Fri Sep 26 15:22:20 JST 2014


YUKI Hiroshi	2014-09-26 15:22:20 +0900 (Fri, 26 Sep 2014)

  New Revision: 18ba409f2cdf21c0d29fc76480ed7bb8801e2f98
  https://github.com/droonga/droonga-engine/commit/18ba409f2cdf21c0d29fc76480ed7bb8801e2f98

  Message:
    Get current version correctly

  Modified files:
    install.sh

  Modified: install.sh (+5 -1)
===================================================================
--- install.sh    2014-09-26 15:17:49 +0900 (ac85d1d)
+++ install.sh    2014-09-26 15:22:20 +0900 (34290cd)
@@ -164,10 +164,14 @@ script_url() {
   if [ "$VERSION" = "master" ]; then
     echo "$SCRIPT_URL_BASE/master/$1"
   else
-    echo "$SCRIPT_URL_BASE/v$($NAME --version)/$1"
+    echo "$SCRIPT_URL_BASE/v$(installed_version)/$1"
   fi
 }
 
+installed_version() {
+  $NAME --version | cut -d " " -f 2
+}
+
 
 install_rroonga() {
   # Install Rroonga globally from a public gem, because custom build
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index