summaryrefslogtreecommitdiffstats
path: root/scripts/sdks/agl/db-dump
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2018-01-08 18:17:29 +0100
committerSebastien Douheret <sebastien.douheret@iot.bzh>2018-01-08 18:17:29 +0100
commit4119f6ebcabfb4285fb2456f10461cee57c6560a (patch)
tree72236e23202363232ef3ea5175210613684f2e40 /scripts/sdks/agl/db-dump
parent25df9a0cd445ed4e0c958a2ca0227f4f1465a5e0 (diff)
Fixed sdks db-update name and backup prev version.v1.0.0
Diffstat (limited to 'scripts/sdks/agl/db-dump')
-rwxr-xr-xscripts/sdks/agl/db-dump4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/sdks/agl/db-dump b/scripts/sdks/agl/db-dump
index e13a8d8..aa8b30d 100755
--- a/scripts/sdks/agl/db-dump
+++ b/scripts/sdks/agl/db-dump
@@ -1,7 +1,7 @@
#! /usr/bin/env nodejs
/**************************************************************************
- * Copyright 2017 IoT.bzh
+ * Copyright 2017-2018 IoT.bzh
*
* author: Sebastien Douheret <sebastien@iot.bzh>
*
@@ -43,7 +43,7 @@ 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-db ' + sdksDBFile), opts);
+ var data = execSync(path.join(__dirname, 'db-update ' + sdksDBFile), opts);
}
// Read SDK Json database file
var data = fs.readFileSync(sdksDBFile);