diff --git a/bin/gen-flash-cn.mjs b/bin/gen-flash-cn.mjs index 0a0bb747..131e05f2 100755 --- a/bin/gen-flash-cn.mjs +++ b/bin/gen-flash-cn.mjs @@ -48,9 +48,11 @@ async function main() { const {size} = await stat(cached.filepath); console.log(`Size: ${size}`); - const [sha256, sha1, md5] = - // eslint-disable-next-line no-await-in-loop - await hashFile(cached.filepath, ['sha256', 'sha1', 'md5']); + // eslint-disable-next-line no-await-in-loop + const [sha256, sha1, md5] = await hashFile( + cached.filepath, + ['sha256', 'sha1', 'md5'] + ); console.log(`SHA256: ${sha256}`); console.log(`SHA1: ${sha1}`); console.log(`MD5: ${md5}`); diff --git a/bin/gen-harman-air-sdk.mjs b/bin/gen-harman-air-sdk.mjs index fd862ac4..8806d173 100755 --- a/bin/gen-harman-air-sdk.mjs +++ b/bin/gen-harman-air-sdk.mjs @@ -40,9 +40,11 @@ async function main() { const {size} = await stat(cached.filepath); console.log(`Size: ${size}`); - const [sha256, sha1, md5] = - // eslint-disable-next-line no-await-in-loop - await hashFile(cached.filepath, ['sha256', 'sha1', 'md5']); + // eslint-disable-next-line no-await-in-loop + const [sha256, sha1, md5] = await hashFile( + cached.filepath, + ['sha256', 'sha1', 'md5'] + ); console.log(`SHA256: ${sha256}`); console.log(`SHA1: ${sha1}`); console.log(`MD5: ${md5}`);