mirror of
https://github.com/azure/login.git
synced 2026-06-06 00:17:07 +00:00
changes in setmodulepath
This commit is contained in:
parent
04bdab0c41
commit
09ec3faf97
2 changed files with 14 additions and 14 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -33,17 +33,17 @@ export default class Utils {
|
|||
|
||||
static setPSModulePath(azPSVersion: string = "") {
|
||||
let modulePath: string = "";
|
||||
const RUNNER: string = process.env.RUNNER_OS || os.type();
|
||||
switch (RUNNER) {
|
||||
case "Linux":
|
||||
const runner: string = 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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue