Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use instanceDir
Browse files Browse the repository at this point in the history
Signed-off-by: Leonty Chudinov <lchudinov@rocketsoftware.com>
Leonty Chudinov committed Feb 4, 2022
1 parent 52818d3 commit 2b7b95e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions utils/install-app.js
Original file line number Diff line number Diff line change
@@ -151,8 +151,8 @@ function copyRecognizers(appDir, appId, appVers) {
let configRecognizers;
let configLocation;

if (process.env.INSTANCE_DIR) {
configLocation = path.join(process.env.INSTANCE_DIR, "workspace/app-server/ZLUX/pluginStorage/org.zowe.zlux.ng2desktop/");
if (process.env.ZWED_instanceDir) {
configLocation = path.join(process.env.ZWED_instanceDir, "ZLUX/pluginStorage/org.zowe.zlux.ng2desktop/");
} else {
try {
let instanceDir = JSON.parse(fs.readFileSync(userInput.zluxConfig)).instanceDir;
@@ -225,8 +225,8 @@ function copyActions(appDir, appId, appVers) {
logger.debug("Could not find actions in '" + (path.join(appDir, "config/actions")) + "'");
}

if (process.env.INSTANCE_DIR) {
configLocation = path.join(process.env.INSTANCE_DIR, "workspace/app-server/ZLUX/pluginStorage/org.zowe.zlux.ng2desktop/");
if (process.env.ZWED_instanceDir) {
configLocation = path.join(process.env.ZWED_instanceDir, "ZLUX/pluginStorage/org.zowe.zlux.ng2desktop/");
} else {
try {
let instanceDir = JSON.parse(fs.readFileSync(userInput.zluxConfig)).instanceDir;

0 comments on commit 2b7b95e

Please sign in to comment.