Skip to content

Commit

Permalink
Fix timing command (#168)
Browse files Browse the repository at this point in the history
* timing was putting an extra "http" into the url which caused it to not load correctly.
* fixes #167
  • Loading branch information
lbergelson authored Jul 30, 2021
1 parent c6389c5 commit d047632
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cromshell
Original file line number Diff line number Diff line change
Expand Up @@ -1124,10 +1124,14 @@ function timing()
local server_url_for_browser=${2}
turtle
echo "Opening timing information in your default web browser for job ID: ${id}"
if [[ ${server_url_for_browser} != "http*" ]]; then
echo "${server_url_for_browser}" | grep -q "^http"
r=$?
if [ $r -ne 0 ]; then
server_url_for_browser="http://${server_url_for_browser}"
fi
open ${server_url_for_browser}/api/workflows/v1/${id}/timing
server_url_for_browser=${server_url_for_browser}/api/workflows/v1/${id}/timing
open ${server_url_for_browser}
echo "URL is: ${server_url_for_browser}"
return $?
}

Expand Down

0 comments on commit d047632

Please sign in to comment.