diff options
-rwxr-xr-x | docker/selenium/launch_selenium_test.sh | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/docker/selenium/launch_selenium_test.sh b/docker/selenium/launch_selenium_test.sh index 7e87069..ac30ecb 100755 --- 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) |