From 7b809045aef9c5578f383ca25e695c11b58e0b26 Mon Sep 17 00:00:00 2001 From: Pavol Mederly Date: Mon, 1 Oct 2018 22:59:27 +0200 Subject: [PATCH] Fix build.sh The demo directories were shown incorrectly. --- build.sh | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/build.sh b/build.sh index eb1b7dc..783e3bf 100755 --- a/build.sh +++ b/build.sh @@ -1,18 +1,5 @@ #!/bin/bash -function normalize_path() -{ - # Remove all /./ sequences. - local path=${1//\/.\//\/} - - # Remove dir/.. sequences. - while [[ $path =~ ([^/][^/]*/\.\./) ]] - do - path=${path/${BASH_REMATCH[0]}/} - done - echo $path -} - cd "$(dirname "$0")" SKIP_DOWNLOAD=0 while getopts "nh?" opt; do @@ -29,10 +16,10 @@ echo "The midPoint containers were successfully built. To start them, execute th echo "" echo "(for simple demo)" echo "" -echo "$ cd" $(normalize_path `pwd`/../demo/simple) +echo "$ cd" $(pwd)/demo/simple echo "$ docker-compose up" echo "" echo "(for complex demo)" echo "" -echo "$ cd" $(normalize_path `pwd`/../demo/complex) +echo "$ cd" $(pwd)/demo/complex echo "$ docker-compose up --build"