Pull the Agent repo and make sure it's on master, so that the relevant binary configuration will be used.

This commit is contained in:
László Monda
2018-04-06 15:48:31 +02:00
parent 58fd3a78cf
commit 0afb3ab687
2 changed files with 2 additions and 1 deletions

View File

@@ -36,6 +36,7 @@ for (const device of package.devices) {
mkdir('-p', deviceDir);
chmod(644, deviceSource);
cp(deviceSource, `${deviceDir}/firmware.hex`);
exec(`cd ${usbDir}; git pull origin master; git checkout master`);
exec(`${usbDir}/user-config-json-to-bin.ts ${deviceDir}/config.bin`);
}