title: How to setup latest version of liquibase through bash script?
body: <p>I used to install liquibase older version e.g </p>
  
  <pre><code>   `wget https://github.com/downloads/liquibase/liquibase/liquibase-2.0.5-bin.tar.gz`
  </code></pre>
  
  <p>and proceed with extraction and move it to desired location . I am unable to locate latest version of 
  liquibase on github. Probably its removed or unavailable ?</p>
  
  <p><a href="http://www.liquibase.org/download/index.html" rel="noreferrer">Liquibase download page</a> has only link to source-forge , could someone help me how to <code>wget</code> a package from source-forge ? </p>
  
  <p><strong>Edit</strong>
   I am not sure of github, it seems there are no builds available for latest version. However, my complete script looks like this:</p>
  
  <pre><code>#!/bin/bash
  sudo apt-get update
  sudo apt-get install -y openjdk-7-jre-headless
  sudo apt-get install -y libmysql-java
  LV="3.1.1"
  function setupLiquibase(){
    source $HOME/.profile
  
    INSTALLED="$(command -v liquibase)"
  
    # if not added already
    if [ -z "$LIQUIBASE_HOME" ]
      then
        echo  'export MYSQL_JCONNECTOR=/usr/share/java/mysql-connector-java.jar'|sudo tee -a $HOME/.profile
        echo  'export LIQUIBASE_HOME=/usr/local/liquibase' |sudo tee -a $HOME/.profile
        echo  'export PATH=$PATH:$LIQUIBASE_HOME'|sudo tee -a $HOME/.profile
    fi
  
    if [ -z "$INSTALLED" ]
      then
          echo "Installing liquibase $LV "
          sudo rm -rf liquibase*
          wget http://kaz.dl.sourceforge.net/project/liquibase/Liquibase%20Core/liquibase-"$LV"-bin.tar.gz
          gunzip liquibase-"$LV"-bin.tar.gz
          sudo mkdir /usr/local/liquibase
          sudo tar -xf liquibase-"$LV"-bin.tar -C /usr/local/liquibase
          sudo chmod +x /usr/local/liquibase/liquibase
      else
          INSTALLED="$(liquibase --version)"
          echo "Liquibase is already installed, ${INSTALLED}"
    fi
  }
  
  setupLiquibase
  </code></pre>