Add update-all-firmwares.js

This commit is contained in:
László Monda
2017-11-17 01:02:31 +01:00
parent 62c5e9d88a
commit c9feb49529
4 changed files with 283 additions and 3 deletions

View File

@@ -2,7 +2,7 @@ require('shelljs/global');
function checkFirmwareImage(imagePath, extension) {
if (!imagePath) {
echo('No firmware image specified');
echo('No firmware image specified.');
exit(1);
}
@@ -12,7 +12,7 @@ function checkFirmwareImage(imagePath, extension) {
}
if (!test('-f', imagePath)) {
echo('Firmware image does not exist');
echo('Firmware image does not exist.');
exit(1);
}
}
@@ -30,7 +30,7 @@ function getBlhostCmd(pid) {
blhostPath = 'win/blhost.exe';
break;
default:
echo('Your operating system is not supported');
echo('Your operating system is not supported.');
exit(1);
break;
}