mirror of
https://github.com/docker/actions-toolkit.git
synced 2024-11-23 11:36:10 +08:00
Merge pull request #405 from crazy-max/buildx-fixlocalstate-typo
buildx: fix typo in fixLocalState func
This commit is contained in:
commit
ce0d3d5cf1
@ -203,10 +203,10 @@ export class Buildx {
|
|||||||
url = url.replace('http:/', 'http://');
|
url = url.replace('http:/', 'http://');
|
||||||
}
|
}
|
||||||
if (url.startsWith('ssh:/') && !url.startsWith('ssh://')) {
|
if (url.startsWith('ssh:/') && !url.startsWith('ssh://')) {
|
||||||
url = url.replace('https:/', 'ssh://');
|
url = url.replace('ssh:/', 'ssh://');
|
||||||
}
|
}
|
||||||
if (url.startsWith('git:/') && !url.startsWith('git://')) {
|
if (url.startsWith('git:/') && !url.startsWith('git://')) {
|
||||||
url = url.replace('https:/', 'git://');
|
url = url.replace('git:/', 'git://');
|
||||||
}
|
}
|
||||||
return [url, trimed, true];
|
return [url, trimed, true];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user