diff options
-rwxr-xr-x | worker/scripts/fetch_code | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/worker/scripts/fetch_code b/worker/scripts/fetch_code index 3315649..7859fb1 100755 --- a/worker/scripts/fetch_code +++ b/worker/scripts/fetch_code @@ -2,7 +2,7 @@ export LOG_PREFIX="[fetch_code $remote @ $checkout -> $path]" -if [[ "$url" == ssh://* ]]; then +if [[ "$remote" == ssh://* ]]; then host=$(echo "$url" | sed -E 's#ssh://([^:]+):[0-9]+/.*#\1#') port=$(echo "$url" | sed -E 's#ssh://[^:]+:([0-9]+)/.*#\1#') |