Skip to content

Commit

Permalink
Merge pull request #236 from vertica/fix-url
Browse files Browse the repository at this point in the history
Fix URL bug
  • Loading branch information
roypaulin authored Mar 18, 2024
2 parents 6f8d65e + 926763d commit 90714c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/verticapylab
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ if [[ $VERTICAPYLAB_BIND_ADDRESS == 0.0.0.0 ]]; then
else
url_host="$VERTICAPYLAB_BIND_ADDRESS"
fi
URL=$(docker logs -n 5 "$VERTICAPYLAB_CONTAINER_NAME" 2>&1 | grep -Eo 'http[s]?://[0-9.]+:8888/.*' | sed "s/[0-9.]*:8888/$url_host:$VERTICAPYLAB_PORT/")
URL=$(docker logs "$VERTICAPYLAB_CONTAINER_NAME" 2>&1 | grep -Eo 'http[s]?://[0-9.]+:8888/.*' | head -n 1 | sed "s/[0-9.]*:8888/$url_host:$VERTICAPYLAB_PORT/")
# This checks the kernel name to set the correct command to open the link in browser,
# because Linux systems will use xdg-open while MacOs will use open
if [[ $OSTYPE == darwin* ]]; then # OSX uses different args for stat
Expand Down

0 comments on commit 90714c0

Please sign in to comment.