Skip to content

Commit 2b7b95e

Browse files
author
Leonty Chudinov
committed
Use instanceDir
Signed-off-by: Leonty Chudinov <[email protected]>
1 parent 52818d3 commit 2b7b95e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

utils/install-app.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,8 @@ function copyRecognizers(appDir, appId, appVers) {
151151
let configRecognizers;
152152
let configLocation;
153153

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

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

0 commit comments

Comments
 (0)