diff options
| author | Elizabeth Hunt <me@liz.coffee> | 2025-07-26 21:07:36 -0700 |
|---|---|---|
| committer | Elizabeth Hunt <me@liz.coffee> | 2025-07-27 00:00:12 -0700 |
| commit | df76fa3c266f7f9b22d2bfaf98ad5accebcabd35 (patch) | |
| tree | 8aaef9f227e385b8e31bd6c69fc6a8231326f361 /worker/scripts/fetch_code | |
| parent | 9ee3bf3345b006a745b2ee28fee3613819011796 (diff) | |
| download | ci-df76fa3c266f7f9b22d2bfaf98ad5accebcabd35.tar.gz ci-df76fa3c266f7f9b22d2bfaf98ad5accebcabd35.zip | |
Fixes type inference for Either.joinRightAsync. Regarding ansible-docker. Will it ever be okay to trust docs?!!
Diffstat (limited to 'worker/scripts/fetch_code')
| -rwxr-xr-x | worker/scripts/fetch_code | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/worker/scripts/fetch_code b/worker/scripts/fetch_code index 2691832..d711f82 100755 --- a/worker/scripts/fetch_code +++ b/worker/scripts/fetch_code @@ -1,10 +1,10 @@ #!/bin/bash -export LOG_PREFIX="[fetch_code $remote @ $checkout -> $path]" +export LOG_PREFIX="[fetch_code $remoteUrl @ $checkout -> $path]" -if [[ "$remote" == ssh://* ]]; then - host=$(echo "$remote" | sed -E 's#ssh://([^:]+):[0-9]+/.*#\1#') - port=$(echo "$remote" | sed -E 's#ssh://[^:]+:([0-9]+)/.*#\1#') +if [[ "$remoteUrl" == ssh://* ]]; then + host=$(echo "$remoteUrl" | sed -E 's#ssh://([^:]+):[0-9]+/.*#\1#') + port=$(echo "$remoteUrl" | sed -E 's#ssh://[^:]+:([0-9]+)/.*#\1#') log "populating host keyz~ $host:$port" ssh-keyscan -p "$port" "$host" > ./cur_known_hosts @@ -14,7 +14,7 @@ if [[ "$remote" == ssh://* ]]; then fi log "getting the codez~ time to fetch!" -git clone "$remote" "$path" +git clone "$remoteUrl" "$path" if [ ! $? -eq 0 ]; then log "D: oh nyo! couldn't clone the repo" exit 1 |
