Skip to content

Commit

Permalink
trim newlines from deviceinfo-codename
Browse files Browse the repository at this point in the history
  • Loading branch information
Seshpenguin committed Nov 7, 2023
1 parent 6bda3e5 commit 0f26799
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/getProLinuxInfo.ts
Expand Up @@ -6,7 +6,7 @@ export async function getProLinuxInfo(): Promise<ProLinuxInfo> {
const [buildnum, uuid, product, variant, channel, builddate, filename, arch] = prolinuxInfo.split(',');

// read /sineware/deviceinfo_codename file, get the string
const deviceinfoCodename = fs.readFileSync('/sineware/deviceinfo_codename', 'utf8');
const deviceinfoCodename = fs.readFileSync('/sineware/deviceinfo_codename', 'utf8').trim();

return {
buildnum,
Expand Down

0 comments on commit 0f26799

Please sign in to comment.