summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElizabeth Hunt <me@liz.coffee>2025-07-01 13:00:31 -0700
committerElizabeth Hunt <me@liz.coffee>2025-07-01 13:00:31 -0700
commitd3c035795e1da3d07e384be0487ec681fa67bbb6 (patch)
tree5be5a7e0dd8ca5babba1204a5ff56776caeda8d0
parent218cfa957712e488a215cf612649d6d890f9c862 (diff)
downloadci-d3c035795e1da3d07e384be0487ec681fa67bbb6.tar.gz
ci-d3c035795e1da3d07e384be0487ec681fa67bbb6.zip
oops typo
-rwxr-xr-xworker/scripts/fetch_code2
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#')