diff options
author | Elizabeth Hunt <me@liz.coffee> | 2025-07-01 13:05:25 -0700 |
---|---|---|
committer | Elizabeth Hunt <me@liz.coffee> | 2025-07-01 13:05:25 -0700 |
commit | 3a3c2cec6e4044c00c4b095cf87eb80f4226e893 (patch) | |
tree | 6ba2260e0727c78578caea2c6131c631b8be714f | |
parent | d3c035795e1da3d07e384be0487ec681fa67bbb6 (diff) | |
download | ci-3a3c2cec6e4044c00c4b095cf87eb80f4226e893.tar.gz ci-3a3c2cec6e4044c00c4b095cf87eb80f4226e893.zip |
gyod fyadfklajsdfjlk
-rwxr-xr-x | worker/scripts/fetch_code | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/worker/scripts/fetch_code b/worker/scripts/fetch_code index 7859fb1..2691832 100755 --- a/worker/scripts/fetch_code +++ b/worker/scripts/fetch_code @@ -3,8 +3,8 @@ export LOG_PREFIX="[fetch_code $remote @ $checkout -> $path]" if [[ "$remote" == ssh://* ]]; then - host=$(echo "$url" | sed -E 's#ssh://([^:]+):[0-9]+/.*#\1#') - port=$(echo "$url" | sed -E 's#ssh://[^:]+:([0-9]+)/.*#\1#') + host=$(echo "$remote" | sed -E 's#ssh://([^:]+):[0-9]+/.*#\1#') + port=$(echo "$remote" | sed -E 's#ssh://[^:]+:([0-9]+)/.*#\1#') log "populating host keyz~ $host:$port" ssh-keyscan -p "$port" "$host" > ./cur_known_hosts |