diff options
author | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2017-12-22 23:05:20 +0100 |
---|---|---|
committer | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2017-12-23 00:41:58 +0100 |
commit | f2eecfb601acc6c67fb52bf2edda93505bc44da5 (patch) | |
tree | c66957356bb6a706b5b6847254a18fdb09906e6a /scripts/sdks/agl/list | |
parent | 1ecdc95d837e73509243d436fcafea0920599fbe (diff) |
Fixed SDKs management when running in xds VM.v1.0.0-rc2
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
Diffstat (limited to 'scripts/sdks/agl/list')
-rwxr-xr-x | scripts/sdks/agl/list | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/sdks/agl/list b/scripts/sdks/agl/list index dc748a4..af1d19f 100755 --- a/scripts/sdks/agl/list +++ b/scripts/sdks/agl/list @@ -1,4 +1,4 @@ -#! /usr/bin/env node +#! /usr/bin/env nodejs /************************************************************************** * Copyright 2017 IoT.bzh @@ -39,11 +39,12 @@ const opts = { }; // Get list of available SDKs -sdksDBFile = path.join(__dirname, "sdks_latest.json") +sdksDBFile = path.join(envMap["SDK_ROOT_DIR"], "sdks_latest.json") try { // Fetch SDK Json database file when not existing if (!fs.existsSync(sdksDBFile)) { - var data = execSync(path.join(__dirname, 'update'), opts); + + var data = execSync(path.join(__dirname, 'update ' + sdksDBFile), opts); } // Read SDK Json database file var data = fs.readFileSync(sdksDBFile); |