Skip to content
Permalink
Browse files

Fix build.sh

The demo directories were shown incorrectly.
  • Loading branch information
mederly committed Oct 1, 2018
1 parent 9b1a4d7 commit 7b809045aef9c5578f383ca25e695c11b58e0b26
Showing with 2 additions and 15 deletions.
  1. +2 −15 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"

0 comments on commit 7b80904

Please sign in to comment.
You can’t perform that action at this time.