mirror of
https://github.com/docker/actions-toolkit.git
synced 2024-11-23 03:16:09 +08:00
docker/install: Clean up toolDir in teardown
The `toolDir` is added to `PATH` on install, so make sure the binaries aren't accessible after a teardown. Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
This commit is contained in:
parent
4980de30fc
commit
0b611e6c46
@ -492,6 +492,13 @@ EOF`,
|
||||
throw new Error(`Unsupported platform: ${os.platform()}`);
|
||||
}
|
||||
}
|
||||
|
||||
await core.group(`Cleaning up toolDir`, async () => {
|
||||
if (!this._toolDir) {
|
||||
return;
|
||||
}
|
||||
fs.rmSync(this._toolDir, {recursive: true, force: true});
|
||||
});
|
||||
}
|
||||
|
||||
private async tearDownDarwin(): Promise<void> {
|
||||
|
Loading…
Reference in New Issue
Block a user