diff options
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); |