burn the logs and use 'install.bash'
[webi-installers/.git] / _common / normalize.js
index f210aa31df641cf5c998c62fc5f5537c45095cb9..dac09020a7f4473ebfd917ecf3144bb3a0ac1791 100644 (file)
@@ -35,14 +35,22 @@ var archMap = {
 
 function normalize(all) {
   all.releases.forEach(function (rel) {
+    rel.version = rel.version.replace(/^v/i, '');
     if (!rel.name) {
       rel.name = rel.download.replace(/.*\//, '');
     }
     if (!rel.os) {
-      console.log('name:', rel.name);
       rel.os =
         Object.keys(osMap).find(function (regKey) {
-          console.log('release os:', regKey, osMap[regKey], osMap[regKey].test(rel.name || rel.download), rel.name, rel.download);
+          /* console.log(
+            'release os:',
+            regKey,
+            osMap[regKey],
+            osMap[regKey].test(rel.name || rel.download),
+            rel.name,
+            rel.download
+          );
+          // */
           return osMap[regKey].test(rel.name || rel.download);
         }) || 'unknown';
     }