buildx: fix typo in fixLocalState func

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2024-07-05 16:29:52 +02:00
parent e49e07d23e
commit 90311d5c08
No known key found for this signature in database
GPG Key ID: ADE44D8C9D44FBE4

View File

@ -203,10 +203,10 @@ export class Buildx {
url = url.replace('http:/', 'http://');
}
if (url.startsWith('ssh:/') && !url.startsWith('ssh://')) {
url = url.replace('https:/', 'ssh://');
url = url.replace('ssh:/', 'ssh://');
}
if (url.startsWith('git:/') && !url.startsWith('git://')) {
url = url.replace('https:/', 'git://');
url = url.replace('git:/', 'git://');
}
return [url, trimed, true];
}