mirror of
https://github.com/graalvm/setup-graalvm.git
synced 2025-03-13 14:30:15 +08:00
Fix cleanup invocation.
This commit is contained in:
parent
8865fdd08f
commit
f6ca3cd9c0
@ -62,9 +62,4 @@ export async function run(): Promise<void> {
|
||||
await ignoreErrors(saveCache())
|
||||
}
|
||||
|
||||
if (require.main === module) {
|
||||
run()
|
||||
} else {
|
||||
// https://nodejs.org/api/modules.html#modules_accessing_the_main_module
|
||||
core.info('the script is loaded as a module, so skipping the execution')
|
||||
}
|
||||
run()
|
||||
|
Loading…
x
Reference in New Issue
Block a user