changes in setmodulepath

This commit is contained in:
aksm-ms
2020-03-17 09:46:10 +05:30
parent 04bdab0c41
commit 09ec3faf97
2 changed files with 14 additions and 14 deletions

View File

@@ -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: