diff --git a/demo/jline-gogo.sh b/demo/jline-gogo.sh index 3fba45c52..62cbc4fd2 100755 --- a/demo/jline-gogo.sh +++ b/demo/jline-gogo.sh @@ -17,31 +17,27 @@ REALNAME=$(realpath "$0") DIRNAME=$(dirname "${REALNAME}") PROGNAME=$(basename "${REALNAME}") ROOTDIR=${DIRNAME}/.. -TARGETDIR=${ROOTDIR}/target +TARGETDIR=${DIRNAME}/target -if [ ! -e ${TARGETDIR} ] ; then +if [ ! -e ${ROOTDIR}/jline/target ] ; then echo "Build jline with maven before running the demo" exit fi; +if [ ! -e ${TARGETDIR} ] ; then + mkdir ${TARGETDIR} +fi; if [ ! -e ${TARGETDIR}/lib ] ; then mkdir ${TARGETDIR}/lib fi; -JLINE_VERSION=$(ls ${TARGETDIR}/jline-*-SNAPSHOT.jar | sed -e 's#.*/jline-## ; s#SNAPSHOT.*#SNAPSHOT#') +JLINE_VERSION=$(ls ${ROOTDIR}/jline/target/jline-*-SNAPSHOT.jar | sed -e 's#.*/jline-## ; s#SNAPSHOT.*#SNAPSHOT#') JANSI_VERSION=$(cat ${ROOTDIR}/pom.xml| grep jansi.version\> | sed -e 's#^.*## ; s# | sed -e 's#^.*## ; s#