mirror of
https://github.com/actions/setup-dotnet.git
synced 2025-12-17 16:26:50 +00:00
Refactor install dir computation
This commit is contained in:
@@ -1,2 +1,7 @@
|
||||
export const IS_WINDOWS = process.platform === 'win32';
|
||||
export const IS_LINUX = process.platform === 'linux';
|
||||
export const getPlatform = (): 'windows' | 'linux' | 'mac' => {
|
||||
if (IS_WINDOWS) return 'windows';
|
||||
if (IS_LINUX) return 'linux';
|
||||
return 'mac';
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user