commit 6102d95f6dac2ef2011b7fac779511dc39721e7c parent bb28b5259f98266c1d334126e807fda4c9985a7a Author: Florian Dold <florian.dold@gmail.com> Date: Fri, 20 May 2016 15:08:20 +0200 find out docker IP automatically Diffstat:
| M | docker/selenium/launch_selenium_test.sh | | | 9 | ++++----- |
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/docker/selenium/launch_selenium_test.sh b/docker/selenium/launch_selenium_test.sh @@ -7,13 +7,12 @@ TEMP=`getopt -o r: --long docker-ip: -n 'launch_selenium_test.sh' -- "$@"` eval set -- "$TEMP" -if test $1 != '--docker-ip' - then - echo '--docker-ip argument is mandatory, exiting..' - exit 1 +if test "$1" != '--docker-ip'; then + IP=$(docker-machine ip) +else + IP=$2 fi -IP=$2 # update wallet (cd $HOME/wallet-webex && git pull && tsc)