Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix build.sh
The demo directories were shown incorrectly.
mederly committed Oct 1, 2018
1 parent 9b1a4d7 commit 7b80904
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions 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.