mirror of
https://github.com/azure/login.git
synced 2026-03-15 09:20:56 -04:00
changes in setmodulepath
This commit is contained in:
@@ -50,17 +50,17 @@ class Utils {
|
||||
}
|
||||
static setPSModulePath(azPSVersion = "") {
|
||||
let modulePath = "";
|
||||
const RUNNER = process.env.RUNNER_OS || os.type();
|
||||
switch (RUNNER) {
|
||||
case "Linux":
|
||||
const runner = process.env.RUNNER_OS || os.type();
|
||||
switch (runner.toLowerCase()) {
|
||||
case "linux":
|
||||
modulePath = `/usr/share/${azPSVersion}:`;
|
||||
break;
|
||||
case "Windows":
|
||||
case "Windows_NT":
|
||||
case "windows":
|
||||
case "windows_nt":
|
||||
modulePath = `C:\\Modules\\${azPSVersion};`;
|
||||
break;
|
||||
case "macOS":
|
||||
case "Darwin":
|
||||
case "macos":
|
||||
case "darwin":
|
||||
// TODO: add modulepath
|
||||
break;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user