mirror of
https://github.com/NuGet/setup-nuget.git
synced 2025-12-06 07:48:23 +08:00
test: improve tests a bit
This commit is contained in:
@@ -38,7 +38,7 @@ function install(spec = 'latest') {
|
||||
if (process.platform !== 'win32') {
|
||||
core.debug(`Creating dummy 'nuget' script.`);
|
||||
const scriptPath = path.join(cachePath, 'nuget');
|
||||
fs.writeFileSync(scriptPath, `#!/bin/sh\nmono ${cachePath}/nuget.exe $@`);
|
||||
fs.writeFileSync(scriptPath, `#!/bin/sh\nmono ${path.join(cachePath, 'nuget.exe')} $@`);
|
||||
fs.chmodSync(scriptPath, '755');
|
||||
}
|
||||
core.addPath(cachePath);
|
||||
|
||||
Reference in New Issue
Block a user