Commit 973b6ec0 authored by Marcus's avatar Marcus

fix typo in parameter processing

parent f2256ab5
......@@ -16,11 +16,12 @@ function usage(){
echo "-ab|--adapter-branch branch of feudalAdapterLdf to use"
echo "-cb|--client-branch branch of feudalClient to use"
}
echo $@
while [ $# -gt 0 ]; do
case "$1" in
-h|--help) usage; exit 0; ;;
-ab|--adapter-branch) ADAPTER_BRANCH=${2} shift ;;
-cb|--client-branch) CLIENT_BRANCH=${2} shift ;;
-ab|--adapter-branch) ADAPTER_BRANCH=${2} ; shift ;;
-cb|--client-branch) CLIENT_BRANCH=${2} ; shift ;;
*) echo "usage" ;;
esac
shift
......@@ -31,7 +32,6 @@ done
pushd ./ > /dev/null
test -d ${INSTALLDIR} && rm -rf ${INSTALLDIR}
test -e ${INSTALLDIR} || mkdir -p ${INSTALLDIR}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment